@@ -32,10 +32,8 @@ pull_request_rules:
32
32
- " #changes-requested-reviews-by>0"
33
33
actions :
34
34
label :
35
- add :
36
- - " needs: work"
37
- remove :
38
- - " needs: review"
35
+ add : ['needs: work']
36
+ remove : ['needs: review']
39
37
40
38
# From needs: review to needs: work - CI failure
41
39
- name : " label needs: work when travis-ci failed"
@@ -45,10 +43,8 @@ pull_request_rules:
45
43
- status-failure~=continuous-integration/travis-ci/pr
46
44
actions :
47
45
label :
48
- add :
49
- - " needs: work"
50
- remove :
51
- - " needs: review"
46
+ add : ['needs: work']
47
+ remove : ['needs: review']
52
48
53
49
# From needs: review to needs: work - CI failure
54
50
- name : " label needs: work when Jenkins CI failed - pr head"
@@ -58,10 +54,8 @@ pull_request_rules:
58
54
- status-failure~=continuous-integration/jenkins/pr-head
59
55
actions :
60
56
label :
61
- add :
62
- - " needs: work"
63
- remove :
64
- - " needs: review"
57
+ add : ['needs: work']
58
+ remove : ['needs: review']
65
59
66
60
# From needs: review to needs: work - CI failure
67
61
- name : " label needs: work when Jenkins CI failed - any of the pipeline"
@@ -71,10 +65,8 @@ pull_request_rules:
71
65
- status-failure~=^jenkins-ci
72
66
actions :
73
67
label :
74
- add :
75
- - " needs: work"
76
- remove :
77
- - " needs: review"
68
+ add : ['needs: work']
69
+ remove : ['needs: review']
78
70
79
71
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
80
72
- name : " label needs: CI when at least one reviewers approval"
@@ -94,8 +86,7 @@ pull_request_rules:
94
86
- -status-failure~=continuous-integration/jenkins/pr-head
95
87
actions :
96
88
label :
97
- add :
98
- - " needs: CI"
89
+ add : ['needs: CI']
99
90
remove : ['needs: review', 'needs: work']
100
91
101
92
# Conflict in the PR - needs: work and a comment to notify a user
@@ -105,8 +96,7 @@ pull_request_rules:
105
96
- conflict
106
97
actions :
107
98
label :
108
- add :
109
- - " needs: work"
99
+ add : ['needs: work']
110
100
remove : ['needs: review', 'needs: CI']
111
101
112
102
comment :
@@ -118,8 +108,7 @@ pull_request_rules:
118
108
- base~=^feature
119
109
actions :
120
110
label :
121
- add :
122
- - " release-version: feature branch"
111
+ add : ['release-version: feature branch']
123
112
124
113
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
125
114
- name : label "ready for merge" when ready
@@ -141,10 +130,8 @@ pull_request_rules:
141
130
- -status-failure~=^jenkins-ci
142
131
actions :
143
132
label :
144
- add :
145
- - " ready for merge"
146
- remove :
147
- - " needs: CI"
133
+ add : ['ready for merge']
134
+ remove : ['needs: CI']
148
135
149
136
# Clean-up after merge
150
137
- name : remove ready for merge when merged
@@ -154,17 +141,15 @@ pull_request_rules:
154
141
- " label=ready for merge"
155
142
actions :
156
143
label :
157
- remove :
158
- - " ready for merge"
144
+ remove : ['ready for merge']
159
145
160
146
- name : add "do not merge" label when WIP is in title
161
147
conditions :
162
148
- base~=feature-mergify
163
149
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
164
150
actions :
165
151
label :
166
- add :
167
- - " do not merge"
152
+ add : ['do not merge']
168
153
169
154
# Check if version label is applied
170
155
- name : release version is a must for merged PRs
@@ -174,8 +159,7 @@ pull_request_rules:
174
159
- -label~=^(release-version)
175
160
actions :
176
161
label :
177
- add :
178
- - " Release review required"
162
+ add : ['Release review required']
179
163
comment :
180
164
message : This PR does not contain release version label after merging.
181
165
0 commit comments