Skip to content

Commit 0919a11

Browse files
authored
ci: Create mergify.yml for pull request management
1 parent ec6680e commit 0919a11

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/mergify.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
pull_request_rules:
2+
- name: Backport to humble at the reviewer's discretion
3+
conditions:
4+
- base=master
5+
- "label=backport-humble"
6+
actions:
7+
backport:
8+
branches:
9+
- humble
10+
11+
- name: Backport to jazzy at the reviewer's discretion
12+
conditions:
13+
- base=master
14+
- "label=backport-jazzy"
15+
actions:
16+
backport:
17+
branches:
18+
- jazzy
19+
20+
- name: Backport to kilted at the reviewer's discretion
21+
conditions:
22+
- base=master
23+
- "label=backport-kilted"
24+
actions:
25+
backport:
26+
branches:
27+
- kilted
28+
29+
- name: Ask to resolve conflict
30+
conditions:
31+
- conflict
32+
- author!=mergify[bot]
33+
actions:
34+
comment:
35+
message: This pull request is in conflict. Could you fix it @{{author}}?
36+
37+
- name: Ask to resolve conflict for backports
38+
conditions:
39+
- conflict
40+
- author=mergify[bot]
41+
actions:
42+
comment:
43+
message: This pull request is in conflict. Could you fix it @Amronos @Narukara?
44+
45+
- name: Development targets rolling branch
46+
conditions:
47+
- base!=rolling
48+
- author!=mergify[bot]
49+
actions:
50+
comment:
51+
message: |
52+
@{{author}}, all pull requests must be targeted towards the `rolling` development branch.
53+
Once merged into `rolling`, it is possible to backport to `{{base}}`, but it must be in `rolling`
54+
to have these changes reflected in new distributions.

0 commit comments

Comments
 (0)