@@ -27,7 +27,6 @@ pull_request_rules:
27
27
# From needs: review to needs: work - reviewers request
28
28
- name : " label needs: work when changes were requested"
29
29
conditions :
30
- - base~=feature-mergify
31
30
# Reviewers
32
31
- " #changes-requested-reviews-by>0"
33
32
actions :
@@ -36,11 +35,11 @@ pull_request_rules:
36
35
- " needs: work"
37
36
remove :
38
37
- " needs: review"
38
+ - " needs: CI"
39
39
40
40
# From needs: review to needs: work - CI failure
41
41
- name : " label needs: work when travis-ci failed"
42
42
conditions :
43
- - base~=feature-mergify
44
43
# Travis failing
45
44
- status-failure~=continuous-integration/travis-ci/pr
46
45
actions :
@@ -49,11 +48,11 @@ pull_request_rules:
49
48
- " needs: work"
50
49
remove :
51
50
- " needs: review"
51
+ - " needs: CI"
52
52
53
53
# From needs: review to needs: work - CI failure
54
54
- name : " label needs: work when Jenkins CI failed - pr head"
55
55
conditions :
56
- - base~=feature-mergify
57
56
# Jenkins CI failing
58
57
- status-failure~=continuous-integration/jenkins/pr-head
59
58
actions :
@@ -62,11 +61,11 @@ pull_request_rules:
62
61
- " needs: work"
63
62
remove :
64
63
- " needs: review"
64
+ - " needs: CI"
65
65
66
66
# From needs: review to needs: work - CI failure
67
67
- name : " label needs: work when Jenkins CI failed - any of the pipeline"
68
68
conditions :
69
- - base~=feature-mergify
70
69
# Jenkins CI failing - any of the pipeline
71
70
- status-failure~=^jenkins-ci
72
71
actions :
@@ -75,11 +74,11 @@ pull_request_rules:
75
74
- " needs: work"
76
75
remove :
77
76
- " needs: review"
77
+ - " needs: CI"
78
78
79
79
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
80
80
- name : " label needs: CI when at least one reviewers approval"
81
81
conditions :
82
- - base~=feature-mergify
83
82
# Labels
84
83
- " label!=needs: preceding PR"
85
84
@@ -100,10 +99,18 @@ pull_request_rules:
100
99
- " needs: review"
101
100
- " needs: work"
102
101
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
+
103
111
# Conflict in the PR - needs: work and a comment to notify a user
104
112
- name : " label needs: work when there is a conflict"
105
113
conditions :
106
- - base~=feature-mergify
107
114
- conflict
108
115
actions :
109
116
label :
@@ -117,7 +124,6 @@ pull_request_rules:
117
124
118
125
- name : " add label feature branch for feature branch additions"
119
126
conditions :
120
- - base~=feature-mergify
121
127
- base~=^feature
122
128
actions :
123
129
label :
@@ -127,7 +133,6 @@ pull_request_rules:
127
133
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
128
134
- name : label "ready for merge" when ready
129
135
conditions :
130
- - base~=feature-mergify
131
136
# Labels
132
137
- " label!=do not merge"
133
138
- " label=needs: CI"
@@ -152,7 +157,6 @@ pull_request_rules:
152
157
# Clean-up after merge
153
158
- name : remove ready for merge when merged
154
159
conditions :
155
- - base~=feature-mergify
156
160
- merged
157
161
- " label=ready for merge"
158
162
actions :
@@ -162,7 +166,6 @@ pull_request_rules:
162
166
163
167
- name : add "do not merge" label when WIP is in title
164
168
conditions :
165
- - base~=feature-mergify
166
169
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
167
170
actions :
168
171
label :
@@ -172,7 +175,6 @@ pull_request_rules:
172
175
# Check if version label is applied
173
176
- name : release version is a must for merged PRs
174
177
conditions :
175
- - base~=feature-mergify
176
178
- merged
177
179
- -label~=^(release-version)
178
180
actions :
0 commit comments