-
Notifications
You must be signed in to change notification settings - Fork 3
/
.mergify.yml
61 lines (54 loc) · 1.33 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
pull_request_rules:
- name: Automatic squash merge when approved
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
actions:
merge:
strict: "smart"
method: squash
commit_message: "title+body"
- name: Add label `Resolution-Invalid` when abandoned
conditions:
- "closed"
- "-merged"
actions:
label:
add: ["Resolution-Invalid"]
- name: Add label `Category-Decision`
conditions:
- "files~=(?i)^docs/decisions"
actions:
label:
add: ["Category-Decision"]
- name: Add label `Category-Management`
conditions:
- "files~=(?i)^docs/project-management"
actions:
label:
add: ["Category-Management"]
- name: Add label `Category-Spec`
conditions:
- "files~=(?i)^docs/specs"
actions:
label:
add: ["Category-Spec"]
- name: Add label `Category-User`
conditions:
- "files~=(?i)^docs/guide"
actions:
label:
add: ["Category-User"]
- name: Assign the author because it is a draft PR
conditions:
- "draft"
actions:
assign:
users: ["{{author}}"]
- name: Assign the author because it needs feedback
conditions:
- "label=Needs-Feedback"
- "-draft"
actions:
assign:
users: ["{{author}}"]