-
Notifications
You must be signed in to change notification settings - Fork 3
/
.mergify.yml
42 lines (42 loc) · 1.07 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
pull_request_rules:
- name: automatic merging when label is set
conditions:
- label!=WIP
- label!=waiting
- label~=ready to merge
- status-success~=Travis CI
- status-success=Mergeable
- status-success=codecov/project
actions:
merge:
method: merge
strict: true
label:
remove:
- ready to merge
- name: delete merged branches
conditions:
- merged
- label!=WIP
actions:
delete_head_branch: {}
- name: add WIP label when WIP is in title
conditions:
- title~=WIP
actions:
comment:
message: Please remove WIP from the title. We have set the WIP Label for you instead.
label:
add:
- WIP
- name: remove "ready to merge" label when pull is not approved
conditions:
- "#approved-reviews-by=0"
- label~=ready to merge
- -merged
actions:
comment:
message: The "ready to merge" label can only be set after one pull request approval
label:
remove:
- ready to merge