Skip to content

Commit c569c7b

Browse files
author
metworkbot
committed
build: sync common files from github_organization_management repository
1 parent 7f4dd97 commit c569c7b

File tree

1 file changed

+117
-76
lines changed

1 file changed

+117
-76
lines changed

.mergify.yml

Lines changed: 117 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# automatically generated from https://github.com/metwork-framework/github_organization_management/blob/master/common_files/mergify.yml)
22

33
pull_request_rules:
4-
5-
- name: backports
4+
- name: backports
65
conditions:
76
- "title~=^.*\\(bp #[0-9][0-9]*\\)$"
87
- -merged
98
- -closed
109
actions:
1110
label:
12-
add: ["Type: Backport"]
11+
add:
12+
- "Type: Backport"
1313
- name: backport to 0.5
1414
conditions:
1515
- base=integration
@@ -106,35 +106,26 @@ pull_request_rules:
106106
backport:
107107
branches:
108108
- release_2.3
109-
110-
- name: approved merges
109+
- name: approved merges
111110
actions:
112111
merge:
113112
method: squash
114-
#strict: true
115-
#commit_message: title+body
116113
commit_message_template: |-
117114
{{ title }} (#{{ number }})
118115
119116
{{ body }}
120117
delete_head_branch: {}
121118
conditions:
122-
123-
- base!=master
124-
125-
- -merged
119+
- base!=master
120+
- -merged
126121
- -closed
127122
- "#approved-reviews-by>=1"
128123
- -title~=(WIP|wip)
129124
- "label!=Status: Blocked"
130-
- "title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)(\\([a-z]+\\))?: .*$"
131-
132-
- status-success=license/cla
133-
134-
#- status-success=continuous-integration/drone/pr
135-
136-
137-
- name: change title
125+
- "title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|fea\
126+
t|fix|feat|feat!|fix!)(\\([a-z]+\\))?: .*$"
127+
- status-success=license/cla
128+
- name: change title
138129
actions:
139130
comment:
140131
message: |
@@ -148,31 +139,23 @@ pull_request_rules:
148139
149140
As the title will be used for the commit message (and so for changelog entry if `feat:` or `fix:`).
150141
conditions:
151-
152-
- base!=master
153-
154-
- -merged
142+
- base!=master
143+
- -merged
155144
- -closed
156145
- "#approved-reviews-by>=1"
157146
- -title~=(WIP|wip)
158147
- "label!=Status: Blocked"
159-
- "-title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)(\\([a-z]+\\))?: .*$"
160-
161-
- status-success=license/cla
162-
163-
#- status-success=continuous-integration/drone/pr
164-
165-
166-
- name: buildbot auto merges
148+
- "-title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|fe\
149+
at|fix|feat|feat!|fix!)(\\([a-z]+\\))?: .*$"
150+
- status-success=license/cla
151+
- name: buildbot auto merges
167152
actions:
168153
review:
169154
type: APPROVE
170-
message: "automatic approve because author=metworkbot"
155+
message: automatic approve because author=metworkbot
171156
conditions:
172-
173-
- base!=master
174-
175-
- -merged
157+
- base!=master
158+
- -merged
176159
- -closed
177160
- author=metworkbot
178161
- -title~=(WIP|wip)
@@ -183,103 +166,161 @@ pull_request_rules:
183166
type: APPROVE
184167
message: "automatic approve because label=Status: Merge Now"
185168
conditions:
186-
187-
- base!=master
188-
189-
- -merged
169+
- base!=master
170+
- -merged
190171
- -closed
191172
- -title~=(WIP|wip)
192173
- "label=Status: Merge Now"
193174
- name: wip
194175
actions:
195176
label:
196-
add: ["Status: In Progress"]
197-
remove: ["Status: Revision Needed", "Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
177+
add:
178+
- "Status: In Progress"
179+
remove:
180+
- "Status: Revision Needed"
181+
- "Status: Pending"
182+
- "Status: Review Needed"
183+
- "Status: Accepted"
184+
- "Status: Blocked"
185+
- "Status: NotReproduced"
186+
- "Status: Merged"
187+
- "Status: Merge Now"
198188
conditions:
199-
200-
- base!=master
201-
202-
- -merged
189+
- base!=master
190+
- -merged
203191
- -closed
204192
- title~=(WIP|wip)
205193
- "label!=Status: Blocked"
206194
- name: review needed
207195
actions:
208196
label:
209-
add: ["Status: Review Needed"]
210-
remove: ["Status: Revision Needed", "Status: Pending", "Status: In Progress", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
197+
add:
198+
- "Status: Review Needed"
199+
remove:
200+
- "Status: Revision Needed"
201+
- "Status: Pending"
202+
- "Status: In Progress"
203+
- "Status: Accepted"
204+
- "Status: Blocked"
205+
- "Status: NotReproduced"
206+
- "Status: Merged"
207+
- "Status: Merge Now"
211208
conditions:
212-
213-
- base!=master
214-
215-
- -merged
209+
- base!=master
210+
- -merged
216211
- -closed
217212
- -title~=(WIP|wip)
218213
- "label!=Status: Blocked"
219214
- "label!=Status: Merge Now"
220215
- "#approved-reviews-by=0"
221-
- "author!=metworkbot"
216+
- author!=metworkbot
222217
- name: revision needed1
223218
actions:
224219
label:
225-
add: ["Status: Revision Needed"]
226-
remove: ["Status: In Progress", "Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
220+
add:
221+
- "Status: Revision Needed"
222+
remove:
223+
- "Status: In Progress"
224+
- "Status: Pending"
225+
- "Status: Review Needed"
226+
- "Status: Accepted"
227+
- "Status: Blocked"
228+
- "Status: NotReproduced"
229+
- "Status: Merged"
230+
- "Status: Merge Now"
227231
conditions:
228-
229-
- base!=master
230-
231-
- -merged
232+
- base!=master
233+
- -merged
232234
- -closed
233235
- "#changes-requested-reviews-by>=1"
234236
- "label!=Status: Blocked"
235237
- name: revision needed2
236238
actions:
237239
label:
238-
add: ["Status: Revision Needed"]
239-
remove: ["Status: In Progress", "Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
240+
add:
241+
- "Status: Revision Needed"
242+
remove:
243+
- "Status: In Progress"
244+
- "Status: Pending"
245+
- "Status: Review Needed"
246+
- "Status: Accepted"
247+
- "Status: Blocked"
248+
- "Status: NotReproduced"
249+
- "Status: Merged"
250+
- "Status: Merge Now"
240251
conditions:
241-
242-
- base!=master
243-
244-
- -merged
252+
- base!=master
253+
- -merged
245254
- -closed
246255
- conflict
247256
- "label!=Status: Blocked"
248-
249-
- name: master branch
257+
- name: master branch
250258
actions:
251259
comment:
252-
message: |
260+
message: >
253261
Thank you for contributing to this project.
254262
263+
255264
But we don't accept pull requests on `master` branch as said in our
265+
256266
contributing guide.
257267
268+
258269
=> You have to change the base branch of your pull request to
270+
259271
`integration` branch.
260272
261273
It's very easy to do that by following this [github guide](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/changing-the-base-branch-of-a-pull-request).
262274
263275
Many thanks!
264276
label:
265-
add: ["Status: Revision Needed"]
266-
remove: ["Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: Closed", "Status: In Progress", "Status: NotReproduced", "Status: Merge Now"]
277+
add:
278+
- "Status: Revision Needed"
279+
remove:
280+
- "Status: Pending"
281+
- "Status: Review Needed"
282+
- "Status: Accepted"
283+
- "Status: Blocked"
284+
- "Status: Closed"
285+
- "Status: In Progress"
286+
- "Status: NotReproduced"
287+
- "Status: Merge Now"
267288
conditions:
268289
- base=master
269290
- -closed
270-
271-
- name: closed
291+
- name: closed
272292
actions:
273293
label:
274-
add: ["Status: Closed"]
275-
remove: ["Status: Revision Needed", "Status: Pending", "Status: Merged", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: In Progress", "Status: NotReproduced", "Status: Merge Now"]
294+
add:
295+
- "Status: Closed"
296+
remove:
297+
- "Status: Revision Needed"
298+
- "Status: Pending"
299+
- "Status: Merged"
300+
- "Status: Review Needed"
301+
- "Status: Accepted"
302+
- "Status: Blocked"
303+
- "Status: In Progress"
304+
- "Status: NotReproduced"
305+
- "Status: Merge Now"
276306
conditions:
277307
- closed
278308
- -merged
279309
- name: merged
280310
actions:
281311
label:
282-
add: ["Status: Merged"]
283-
remove: ["Status: Revision Needed", "Status: Pending", "Status: Closed", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: In Progress", "Status: NotReproduced", "Status: Merge Now"]
312+
add:
313+
- "Status: Merged"
314+
remove:
315+
- "Status: Revision Needed"
316+
- "Status: Pending"
317+
- "Status: Closed"
318+
- "Status: Review Needed"
319+
- "Status: Accepted"
320+
- "Status: Blocked"
321+
- "Status: In Progress"
322+
- "Status: NotReproduced"
323+
- "Status: Merge Now"
284324
conditions:
285325
- merged
326+
queue_rules: []

0 commit comments

Comments
 (0)