Skip to content

Commit dfb573a

Browse files
authored
Merge pull request #88 from dhellmann/auto-approve
set up automatic approval rules for mergify
2 parents 0b60b4d + 4d514e8 commit dfb573a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

Diff for: .mergify.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ pull_request_rules:
3434
add:
3535
- documentation
3636

37+
- name: automatic approval for Dependabot pull requests
38+
conditions:
39+
- author=dependabot[bot]
40+
actions:
41+
review:
42+
type: APPROVE
43+
message: Automatically approving dependabot
44+
3745
- name: Add breaking-change label
3846
# https://docs.openstack.org/pbr/latest/user/features.html
3947
conditions:
@@ -52,6 +60,17 @@ pull_request_rules:
5260
add:
5361
- feature
5462

63+
- name: Add automatic-merge label
64+
conditions:
65+
- or:
66+
- "author=dhellmann"
67+
- "author=jasonamyers"
68+
- "label!=mergify"
69+
actions:
70+
label:
71+
add:
72+
- automatic-merge
73+
5574
- name: Automatic merge on approval
5675
conditions:
5776
- and:
@@ -69,7 +88,10 @@ pull_request_rules:
6988
- "check-success=Test Ubuntu (3.12)"
7089
- "check-success=Test Zsh"
7190
- "-draft"
72-
- "#approved-reviews-by>=1"
91+
- or:
92+
- "#approved-reviews-by>=1"
93+
- "author=dhellmann"
94+
- "author=jasonamyers"
7395
actions:
7496
merge:
7597
method: merge

0 commit comments

Comments
 (0)