1+ # automatically generated from https://github.com/metwork-framework/github_organization_management/blob/master/common_files/mergify.yml)
2+
13pull_request_rules :
4+
25 - name : backports
36 conditions :
47 - " title~=^.*\\ (bp #[0-9][0-9]*\\ )$"
58 - -merged
69 - -closed
710 actions :
811 label :
9- add :
10- - " Type: Backport"
12+ add : ["Type: Backport"]
1113 - name : backport to 0.5
1214 conditions :
1315 - base=integration
@@ -104,25 +106,34 @@ pull_request_rules:
104106 backport :
105107 branches :
106108 - release_2.3
109+
107110 - name : approved merges
108111 actions :
109112 merge :
110113 method : squash
114+ # strict: true
115+ # commit_message: title+body
111116 commit_message_template : |-
112117 {{ title }} (#{{ number }})
113118
114119 {{ body }}
115120 delete_head_branch : {}
116121 conditions :
122+
117123 - base!=master
124+
118125 - -merged
119126 - -closed
120127 - " #approved-reviews-by>=1"
121128 - -title~=(WIP|wip)
122129 - " label!=Status: Blocked"
123- - " title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|fea\
124- t|feat!|fix!)( \\ ([a-z]+ \\ ))?: .*$ "
130+ - " title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)( \\ ([a-z]+ \\ ))?: .*$ "
131+
125132 - status-success=license/cla
133+
134+ # - status-success=continuous-integration/drone/pr
135+
136+
126137 - name : change title
127138 actions :
128139 comment :
@@ -137,22 +148,30 @@ pull_request_rules:
137148
138149 As the title will be used for the commit message (and so for changelog entry if `feat:` or `fix:`).
139150 conditions :
151+
140152 - base!=master
153+
141154 - -merged
142155 - -closed
143156 - " #approved-reviews-by>=1"
144157 - -title~=(WIP|wip)
145158 - " label!=Status: Blocked"
146- - " -title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|fe\
147- at|feat!|fix!)( \\ ([a-z]+ \\ ))?: .*$ "
159+ - " -title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)( \\ ([a-z]+ \\ ))?: .*$ "
160+
148161 - status-success=license/cla
162+
163+ # - status-success=continuous-integration/drone/pr
164+
165+
149166 - name : buildbot auto merges
150167 actions :
151168 review :
152169 type : APPROVE
153- message : automatic approve because author=metworkbot
170+ message : " automatic approve because author=metworkbot"
154171 conditions :
172+
155173 - base!=master
174+
156175 - -merged
157176 - -closed
158177 - author=metworkbot
@@ -164,161 +183,103 @@ pull_request_rules:
164183 type : APPROVE
165184 message : " automatic approve because label=Status: Merge Now"
166185 conditions :
186+
167187 - base!=master
188+
168189 - -merged
169190 - -closed
170191 - -title~=(WIP|wip)
171192 - " label=Status: Merge Now"
172193 - name : wip
173194 actions :
174195 label :
175- add :
176- - " Status: In Progress"
177- remove :
178- - " Status: Revision Needed"
179- - " Status: Pending"
180- - " Status: Review Needed"
181- - " Status: Accepted"
182- - " Status: Blocked"
183- - " Status: NotReproduced"
184- - " Status: Merged"
185- - " Status: Merge Now"
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"]
186198 conditions :
199+
187200 - base!=master
201+
188202 - -merged
189203 - -closed
190204 - title~=(WIP|wip)
191205 - " label!=Status: Blocked"
192206 - name : review needed
193207 actions :
194208 label :
195- add :
196- - " Status: Review Needed"
197- remove :
198- - " Status: Revision Needed"
199- - " Status: Pending"
200- - " Status: In Progress"
201- - " Status: Accepted"
202- - " Status: Blocked"
203- - " Status: NotReproduced"
204- - " Status: Merged"
205- - " Status: Merge Now"
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"]
206211 conditions :
212+
207213 - base!=master
214+
208215 - -merged
209216 - -closed
210217 - -title~=(WIP|wip)
211218 - " label!=Status: Blocked"
212219 - " label!=Status: Merge Now"
213220 - " #approved-reviews-by=0"
214- - author!=metworkbot
221+ - " author!=metworkbot"
215222 - name : revision needed1
216223 actions :
217224 label :
218- add :
219- - " Status: Revision Needed"
220- remove :
221- - " Status: In Progress"
222- - " Status: Pending"
223- - " Status: Review Needed"
224- - " Status: Accepted"
225- - " Status: Blocked"
226- - " Status: NotReproduced"
227- - " Status: Merged"
228- - " Status: Merge Now"
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"]
229227 conditions :
228+
230229 - base!=master
230+
231231 - -merged
232232 - -closed
233233 - " #changes-requested-reviews-by>=1"
234234 - " label!=Status: Blocked"
235235 - name : revision needed2
236236 actions :
237237 label :
238- add :
239- - " Status: Revision Needed"
240- remove :
241- - " Status: In Progress"
242- - " Status: Pending"
243- - " Status: Review Needed"
244- - " Status: Accepted"
245- - " Status: Blocked"
246- - " Status: NotReproduced"
247- - " Status: Merged"
248- - " Status: Merge Now"
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"]
249240 conditions :
241+
250242 - base!=master
243+
251244 - -merged
252245 - -closed
253246 - conflict
254247 - " label!=Status: Blocked"
248+
255249 - name : master branch
256250 actions :
257251 comment :
258- message : >
252+ message : |
259253 Thank you for contributing to this project.
260254
261-
262255 But we don't accept pull requests on `master` branch as said in our
263-
264256 contributing guide.
265257
266-
267258 => You have to change the base branch of your pull request to
268-
269259 `integration` branch.
270260
271261 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).
272262
273263 Many thanks!
274264 label :
275- add :
276- - " Status: Revision Needed"
277- remove :
278- - " Status: Pending"
279- - " Status: Review Needed"
280- - " Status: Accepted"
281- - " Status: Blocked"
282- - " Status: Closed"
283- - " Status: In Progress"
284- - " Status: NotReproduced"
285- - " Status: Merge Now"
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"]
286267 conditions :
287268 - base=master
288269 - -closed
270+
289271 - name : closed
290272 actions :
291273 label :
292- add :
293- - " Status: Closed"
294- remove :
295- - " Status: Revision Needed"
296- - " Status: Pending"
297- - " Status: Merged"
298- - " Status: Review Needed"
299- - " Status: Accepted"
300- - " Status: Blocked"
301- - " Status: In Progress"
302- - " Status: NotReproduced"
303- - " Status: Merge Now"
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"]
304276 conditions :
305277 - closed
306278 - -merged
307279 - name : merged
308280 actions :
309281 label :
310- add :
311- - " Status: Merged"
312- remove :
313- - " Status: Revision Needed"
314- - " Status: Pending"
315- - " Status: Closed"
316- - " Status: Review Needed"
317- - " Status: Accepted"
318- - " Status: Blocked"
319- - " Status: In Progress"
320- - " Status: NotReproduced"
321- - " Status: Merge Now"
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"]
322284 conditions :
323285 - merged
324- queue_rules : []
0 commit comments