-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.mergify.yml
45 lines (42 loc) · 907 Bytes
/
.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
pull_request_rules:
- name: "Assign author"
conditions: []
actions:
assign:
users:
- "{{author}}"
# Merge flow for contributors
- name: "Request review"
conditions:
- "author!=jeroen-meijer"
actions:
request_reviews:
users:
- "jeroen-meijer"
- name: "Merge when CI passes & has one approval"
conditions:
- "author!=jeroen-meijer"
- "label!=wip"
- "status-success~=app"
- "#approved-reviews-by>=1"
actions:
merge:
method: squash
strict: smart
commit_message: default
# Merge flow for non-contributors
- name: "Merge when CI passes"
conditions:
- "author=jeroen-meijer"
- "label!=wip"
- "status-success~=app"
actions:
merge:
method: squash
strict: smart
commit_message: default
- name: Delete branch post merge
conditions:
- merged
actions:
delete_head_branch: {}