Skip to content

Commit e4cd938

Browse files
committed
mergify: enable it only for feature-mergify
This will be reverted once mergify works with the PR workflow. One rule for each condition - base is feature-mergify.
1 parent ec0c69c commit e4cd938

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.mergify.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pull_request_rules:
2525
# From needs: review to needs: work - reviewers request
2626
- name: "label needs: work when changes were requested"
2727
conditions:
28+
- base~=feature-mergify
2829
# Reviewers
2930
- "#changes-requested-reviews-by>0"
3031
actions:
@@ -37,6 +38,7 @@ pull_request_rules:
3738
# From needs: review to needs: work - CI failure
3839
- name: "label needs: work when travis-ci failed"
3940
conditions:
41+
- base~=feature-mergify
4042
# Travis failing
4143
- status-failure~=continuous-integration/travis-ci/pr
4244
actions:
@@ -49,6 +51,7 @@ pull_request_rules:
4951
# From needs: review to needs: work - CI failure
5052
- name: "label needs: work when Jenkins CI failed - pr head"
5153
conditions:
54+
- base~=feature-mergify
5255
# Jenkins CI failing
5356
- status-failure~=continuous-integration/jenkins/pr-head
5457
actions:
@@ -61,6 +64,7 @@ pull_request_rules:
6164
# From needs: review to needs: work - CI failure
6265
- name: "label needs: work when Jenkins CI failed - any of the pipeline"
6366
conditions:
67+
- base~=feature-mergify
6468
# Jenkins CI failing - any of the pipeline
6569
- status-failure~=^jenkins-ci
6670
actions:
@@ -73,6 +77,7 @@ pull_request_rules:
7377
# From needs: review to needs: CI
7478
- name: "label needs: CI when at least one reviewers approval"
7579
conditions:
80+
- base~=feature-mergify
7681
# Labels
7782
- "label!=needs: work"
7883
- "label!=needs: preceding PR"
@@ -95,6 +100,7 @@ pull_request_rules:
95100
# Conflict in the PR - needs: work and a comment to notify a user
96101
- name: "label needs: work when there is a conflict"
97102
conditions:
103+
- base~=feature-mergify
98104
- conflict
99105
actions:
100106
label:
@@ -107,6 +113,7 @@ pull_request_rules:
107113

108114
- name: "add label feature branch for feature branch additions"
109115
conditions:
116+
- base~=feature-mergify
110117
- base~=^feature
111118
actions:
112119
label:
@@ -116,6 +123,7 @@ pull_request_rules:
116123
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
117124
- name: label "ready for merge" when ready
118125
conditions:
126+
- base~=feature-mergify
119127
# Labels
120128
- label!=do not merge
121129
- "label=needs: CI"
@@ -140,6 +148,7 @@ pull_request_rules:
140148
# Clean-up after merge
141149
- name: remove ready for merge when merged
142150
conditions:
151+
- base~=feature-mergify
143152
- merged
144153
- label=ready for merge
145154
actions:
@@ -149,6 +158,7 @@ pull_request_rules:
149158

150159
- name: add "do not merge" label when WIP is in title
151160
conditions:
161+
- base~=feature-mergify
152162
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
153163
actions:
154164
label:
@@ -158,6 +168,7 @@ pull_request_rules:
158168
# Check if version label is applied
159169
- name: release version is a must for merged PRs
160170
conditions:
171+
- base~=feature-mergify
161172
- merged
162173
- -label~=^(release-version)
163174
actions:

0 commit comments

Comments
 (0)