-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mergify.yml
128 lines (112 loc) · 4.04 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# automatically generated from https://github.com/metwork-framework/github_organization_management/blob/master/common_files/mergify.yml)
pull_request_rules:
- name: approved merges
actions:
merge:
method: squash
strict: true
commit_message: title+body
delete_head_branch: {}
conditions:
- -merged
- -closed
- "#approved-reviews-by>=1"
- -title~=(WIP|wip)
- "label!=Status: Blocked"
- "title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)(\\([a-z]+\\))?: .*$"
- name: change title
actions:
comment:
message: |
For mergify to merge automatically this PR,
=> you have to change the PR title to match conventional commit specification:
```
regex: ^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)(\([a-z]+\))?: .*$
```
As the title will be used for the commit message (and so for changelog entry if `feat:` or `fix:`).
conditions:
- -merged
- -closed
- "#approved-reviews-by>=1"
- -title~=(WIP|wip)
- "label!=Status: Blocked"
- "-title~=^(build|chore|ci|docs|style|refactor|perf|test|fix|feat|fix|feat|feat!|fix!)(\\([a-z]+\\))?: .*$"
- name: buildbot auto merges
actions:
review:
type: APPROVE
message: "automatic approve because author=metworkbot"
conditions:
- -merged
- -closed
- author=metworkbot
- -title~=(WIP|wip)
- "label!=Status: Blocked"
- name: mergenow auto merges
actions:
review:
type: APPROVE
message: "automatic approve because label=Status: Merge Now"
conditions:
- -merged
- -closed
- -title~=(WIP|wip)
- "label=Status: Merge Now"
- name: wip
actions:
label:
add: ["Status: In Progress"]
remove: ["Status: Revision Needed", "Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
conditions:
- -merged
- -closed
- title~=(WIP|wip)
- "label!=Status: Blocked"
- name: review needed
actions:
label:
add: ["Status: Review Needed"]
remove: ["Status: Revision Needed", "Status: Pending", "Status: In Progress", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
conditions:
- -merged
- -closed
- -title~=(WIP|wip)
- "label!=Status: Blocked"
- "label!=Status: Merge Now"
- "#approved-reviews-by=0"
- "author!=metworkbot"
- name: revision needed1
actions:
label:
add: ["Status: Revision Needed"]
remove: ["Status: In Progress", "Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
conditions:
- -merged
- -closed
- "#changes-requested-reviews-by>=1"
- "label!=Status: Blocked"
- name: revision needed2
actions:
label:
add: ["Status: Revision Needed"]
remove: ["Status: In Progress", "Status: Pending", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: NotReproduced", "Status: Merged", "Status: Merge Now"]
conditions:
- -merged
- -closed
- conflict
- "label!=Status: Blocked"
- name: closed
actions:
label:
add: ["Status: Closed"]
remove: ["Status: Revision Needed", "Status: Pending", "Status: Merged", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: In Progress", "Status: NotReproduced", "Status: Merge Now"]
conditions:
- closed
- -merged
- name: merged
actions:
label:
add: ["Status: Merged"]
remove: ["Status: Revision Needed", "Status: Pending", "Status: Closed", "Status: Review Needed", "Status: Accepted", "Status: Blocked", "Status: In Progress", "Status: NotReproduced", "Status: Merge Now"]
conditions:
- merged