forked from maistra/istio-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
47 lines (47 loc) · 1.38 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
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
- 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
- name: label work in progress PRs
conditions:
- label != "work in progress"
- title ~= '^WIP\b'
actions:
label:
add:
- "work in progress"
- name: remove work in progress labels
conditions:
- label = "work in progress"
- title ~= '^(?!WIP\b)'
actions:
label:
remove:
- "work in progress"