Skip to content

Commit 7cbc8bb

Browse files
authored
Make all add /remove labels consistent, format wise
1 parent 958d462 commit 7cbc8bb

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

.mergify.yml

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ pull_request_rules:
3232
- "#changes-requested-reviews-by>0"
3333
actions:
3434
label:
35-
add:
36-
- "needs: work"
37-
remove:
38-
- "needs: review"
35+
add: ['needs: work']
36+
remove: ['needs: review']
3937

4038
# From needs: review to needs: work - CI failure
4139
- name: "label needs: work when travis-ci failed"
@@ -45,10 +43,8 @@ pull_request_rules:
4543
- status-failure~=continuous-integration/travis-ci/pr
4644
actions:
4745
label:
48-
add:
49-
- "needs: work"
50-
remove:
51-
- "needs: review"
46+
add: ['needs: work']
47+
remove: ['needs: review']
5248

5349
# From needs: review to needs: work - CI failure
5450
- name: "label needs: work when Jenkins CI failed - pr head"
@@ -58,10 +54,8 @@ pull_request_rules:
5854
- status-failure~=continuous-integration/jenkins/pr-head
5955
actions:
6056
label:
61-
add:
62-
- "needs: work"
63-
remove:
64-
- "needs: review"
57+
add: ['needs: work']
58+
remove: ['needs: review']
6559

6660
# From needs: review to needs: work - CI failure
6761
- name: "label needs: work when Jenkins CI failed - any of the pipeline"
@@ -71,10 +65,8 @@ pull_request_rules:
7165
- status-failure~=^jenkins-ci
7266
actions:
7367
label:
74-
add:
75-
- "needs: work"
76-
remove:
77-
- "needs: review"
68+
add: ['needs: work']
69+
remove: ['needs: review']
7870

7971
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
8072
- name: "label needs: CI when at least one reviewers approval"
@@ -94,8 +86,7 @@ pull_request_rules:
9486
- -status-failure~=continuous-integration/jenkins/pr-head
9587
actions:
9688
label:
97-
add:
98-
- "needs: CI"
89+
add: ['needs: CI']
9990
remove: ['needs: review', 'needs: work']
10091

10192
# Conflict in the PR - needs: work and a comment to notify a user
@@ -105,8 +96,7 @@ pull_request_rules:
10596
- conflict
10697
actions:
10798
label:
108-
add:
109-
- "needs: work"
99+
add: ['needs: work']
110100
remove: ['needs: review', 'needs: CI']
111101

112102
comment:
@@ -118,8 +108,7 @@ pull_request_rules:
118108
- base~=^feature
119109
actions:
120110
label:
121-
add:
122-
- "release-version: feature branch"
111+
add: ['release-version: feature branch']
123112

124113
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
125114
- name: label "ready for merge" when ready
@@ -141,10 +130,8 @@ pull_request_rules:
141130
- -status-failure~=^jenkins-ci
142131
actions:
143132
label:
144-
add:
145-
- "ready for merge"
146-
remove:
147-
- "needs: CI"
133+
add: ['ready for merge']
134+
remove: ['needs: CI']
148135

149136
# Clean-up after merge
150137
- name: remove ready for merge when merged
@@ -154,17 +141,15 @@ pull_request_rules:
154141
- "label=ready for merge"
155142
actions:
156143
label:
157-
remove:
158-
- "ready for merge"
144+
remove: ['ready for merge']
159145

160146
- name: add "do not merge" label when WIP is in title
161147
conditions:
162148
- base~=feature-mergify
163149
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
164150
actions:
165151
label:
166-
add:
167-
- "do not merge"
152+
add: ['do not merge']
168153

169154
# Check if version label is applied
170155
- name: release version is a must for merged PRs
@@ -174,8 +159,7 @@ pull_request_rules:
174159
- -label~=^(release-version)
175160
actions:
176161
label:
177-
add:
178-
- "Release review required"
162+
add: ['Release review required']
179163
comment:
180164
message: This PR does not contain release version label after merging.
181165

0 commit comments

Comments
 (0)