-
Notifications
You must be signed in to change notification settings - Fork 119
/
.mergify.yml
65 lines (65 loc) · 1.77 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pull_request_rules:
- name: automatic merge (with squash) with strict when reviewed and not work in progress
conditions:
- '#approved-reviews-by>=2'
- '#review-requested=0'
- '#changes-requested-reviews-by=0'
#- '#commented-reviews-by=0'
- label != "work in progress"
- label = "okay to merge"
- label != "don't squash"
#- status-success=Commit Message Lint
#- milestone ~= '^maistra-\d+-\d+$'
actions:
merge:
method: squash
strict: smart
label:
remove:
- "ready to merge"
- name: automatic merge (without squash) with strict when reviewed and not work in progress
conditions:
- '#approved-reviews-by>=2'
- '#review-requested=0'
- '#changes-requested-reviews-by=0'
#- '#commented-reviews-by=0'
- label != "work in progress"
- label = "okay to merge"
- label = "don't squash"
#- status-success=Commit Message Lint
#- milestone ~= '^maistra-\d+-\d+$'
actions:
merge:
method: rebase
strict: smart
label:
remove:
- "ready to merge"
- name: label work in progress PRs
conditions:
- label != "work in progress"
- title ~=^WIP\b
actions:
label:
add:
- "work in progress"
remove:
- "ready to merge"
- name: remove work in progress labels
conditions:
- label = "work in progress"
- title ~=^(?!WIP\b)
actions:
label:
remove:
- "work in progress"
- name: label PRs that can be merged
conditions:
- '#approved-reviews-by>=2'
- '#review-requested=0'
- '#changes-requested-reviews-by=0'
- label != "work in progress"
actions:
label:
add:
- "ready to merge"