-
Notifications
You must be signed in to change notification settings - Fork 17
/
.mergify.yml
49 lines (48 loc) · 1.08 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pull_request_rules:
- name: merge to master with label automerge and one PR approval
conditions:
- "#approved-reviews-by>=1"
- base=master
- label=automerge
actions:
merge:
method: squash
- name: backport master changes to develop
conditions:
- base=master
actions:
backport:
branches:
- develop
assignees:
- "{{ author }}"
- name: automerge to develop when a PR is approved or created by mergify
conditions:
- or:
- and:
- "#approved-reviews-by>=1"
- base=develop
- and:
- author=mergify[bot]
- base!=master
actions:
merge:
method: squash
- name: add label on conflict
conditions:
- conflict
- -closed
actions:
label:
add:
- conflict
comment:
message: Could you please fix the conflicts @{{author}}?
- name: remove label on conflict
conditions:
- -conflict
- -closed
actions:
label:
remove:
- conflict