-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.mergify.yml
98 lines (90 loc) · 2.29 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
pull_request_rules:
- name: Add CI label
conditions:
- or:
- "title~=^tox:"
- "title~=^ci:"
- "files~=tox.ini"
- "files~=tests"
actions:
label:
add:
- ci
- name: Add Mergify label
conditions:
- or:
- "title~=^mergify:"
- "files~=.mergify.yml$"
actions:
label:
add:
- mergify
- name: Add Documentation label
conditions:
- or:
- "title~=^docs:"
- "files~=docs"
- "files~=.rst$"
- "files~=.readthedocs.yaml$"
actions:
label:
add:
- documentation
- name: automatic approval for Dependabot pull requests
conditions:
- author=dependabot[bot]
actions:
review:
type: APPROVE
message: Automatically approving dependabot
- name: Add breaking-change label
# https://docs.openstack.org/pbr/latest/user/features.html
conditions:
- "body~=Sem-Ver: api-break"
actions:
label:
add:
- "breaking change"
- name: Add feature label
# https://docs.openstack.org/pbr/latest/user/features.html
conditions:
- "body~=Sem-Ver: feature"
actions:
label:
add:
- feature
- name: Add automatic-merge label
conditions:
- or:
- "author=dhellmann"
- "author=jasonamyers"
- "label!=mergify"
actions:
label:
add:
- automatic-merge
- name: Automatic merge on approval
conditions:
- and:
- "check-success=docs"
- "check-success=style (style)"
- "check-success=style (pkglint)"
- "check-success=Test macOS (3.8)"
- "check-success=Test macOS (3.9)"
- "check-success=Test macOS (3.10)"
- "check-success=Test macOS (3.11)"
- "check-success=Test macOS (3.12)"
- "check-success=Test Ubuntu (3.8)"
- "check-success=Test Ubuntu (3.9)"
- "check-success=Test Ubuntu (3.10)"
- "check-success=Test Ubuntu (3.11)"
- "check-success=Test Ubuntu (3.12)"
- "check-success=Test Zsh"
- "-draft"
- or:
- "#approved-reviews-by>=1"
- "author=dhellmann"
- "author=jasonamyers"
actions:
merge:
method: merge