@@ -27,7 +27,6 @@ pull_request_rules:
2727 # From needs: review to needs: work - reviewers request
2828 - name : " label needs: work when changes were requested"
2929 conditions :
30- - base~=feature-mergify
3130 # Reviewers
3231 - " #changes-requested-reviews-by>0"
3332 actions :
@@ -36,11 +35,11 @@ pull_request_rules:
3635 - " needs: work"
3736 remove :
3837 - " needs: review"
38+ - " needs: CI"
3939
4040 # From needs: review to needs: work - CI failure
4141 - name : " label needs: work when travis-ci failed"
4242 conditions :
43- - base~=feature-mergify
4443 # Travis failing
4544 - status-failure~=continuous-integration/travis-ci/pr
4645 actions :
@@ -49,11 +48,11 @@ pull_request_rules:
4948 - " needs: work"
5049 remove :
5150 - " needs: review"
51+ - " needs: CI"
5252
5353 # From needs: review to needs: work - CI failure
5454 - name : " label needs: work when Jenkins CI failed - pr head"
5555 conditions :
56- - base~=feature-mergify
5756 # Jenkins CI failing
5857 - status-failure~=continuous-integration/jenkins/pr-head
5958 actions :
@@ -62,11 +61,11 @@ pull_request_rules:
6261 - " needs: work"
6362 remove :
6463 - " needs: review"
64+ - " needs: CI"
6565
6666 # From needs: review to needs: work - CI failure
6767 - name : " label needs: work when Jenkins CI failed - any of the pipeline"
6868 conditions :
69- - base~=feature-mergify
7069 # Jenkins CI failing - any of the pipeline
7170 - status-failure~=^jenkins-ci
7271 actions :
@@ -75,11 +74,11 @@ pull_request_rules:
7574 - " needs: work"
7675 remove :
7776 - " needs: review"
77+ - " needs: CI"
7878
7979 # From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
8080 - name : " label needs: CI when at least one reviewers approval"
8181 conditions :
82- - base~=feature-mergify
8382 # Labels
8483 - " label!=needs: preceding PR"
8584
@@ -100,10 +99,18 @@ pull_request_rules:
10099 - " needs: review"
101100 - " needs: work"
102101
102+ # Remove reviews after the branch is updated. This yet does not allow
103+ # any other action like labels, etc. See mergify-engine/issues/360
104+ - name : remove outdated reviews
105+ conditions : []
106+ actions :
107+ dismiss_reviews :
108+ approved : True
109+ changes_requested : True
110+
103111 # Conflict in the PR - needs: work and a comment to notify a user
104112 - name : " label needs: work when there is a conflict"
105113 conditions :
106- - base~=feature-mergify
107114 - conflict
108115 actions :
109116 label :
@@ -117,7 +124,6 @@ pull_request_rules:
117124
118125 - name : " add label feature branch for feature branch additions"
119126 conditions :
120- - base~=feature-mergify
121127 - base~=^feature
122128 actions :
123129 label :
@@ -127,7 +133,6 @@ pull_request_rules:
127133 # Ready for integration. Not yet auto merge, will be enabled once carefuly tested
128134 - name : label "ready for merge" when ready
129135 conditions :
130- - base~=feature-mergify
131136 # Labels
132137 - " label!=do not merge"
133138 - " label=needs: CI"
@@ -152,7 +157,6 @@ pull_request_rules:
152157 # Clean-up after merge
153158 - name : remove ready for merge when merged
154159 conditions :
155- - base~=feature-mergify
156160 - merged
157161 - " label=ready for merge"
158162 actions :
@@ -162,7 +166,6 @@ pull_request_rules:
162166
163167 - name : add "do not merge" label when WIP is in title
164168 conditions :
165- - base~=feature-mergify
166169 - title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
167170 actions :
168171 label :
@@ -172,7 +175,6 @@ pull_request_rules:
172175 # Check if version label is applied
173176 - name : release version is a must for merged PRs
174177 conditions :
175- - base~=feature-mergify
176178 - merged
177179 - -label~=^(release-version)
178180 actions :
0 commit comments