Skip to content

Commit 24ce3d2

Browse files
committed
github: add mergify configuration
taken from samba-container / sambacc and adjusted. Signed-off-by: Michael Adam <[email protected]>
1 parent ebdc6e3 commit 24ce3d2

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

.github/mergify.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
defaults:
3+
actions:
4+
queue:
5+
name: default
6+
method: rebase
7+
update_method: rebase
8+
9+
10+
# each test should be listed separately, do not use regular expressions:
11+
# https://docs.mergify.io/conditions.html#validating-all-status-check
12+
# TODO: Use mergify's recently added 'shared configuration support'
13+
# to dedup some of the check-x=y repetition in the future.
14+
queue_rules:
15+
- name: default
16+
conditions:
17+
- check-success=check
18+
- check-success=build
19+
- check-success=podmanbuild
20+
- check-success=dockerbuild
21+
- check-success=test
22+
- check-success=test-kubernetes
23+
- check-success=centos-ci/sink-clustered/mini-k8s-1.25
24+
- check-success=dpulls
25+
26+
27+
pull_request_rules:
28+
# Clearing approvals after content changes
29+
- name: Remove outdated approvals
30+
conditions:
31+
- base=master
32+
actions:
33+
dismiss_reviews:
34+
approved: true
35+
changes_requested: false
36+
# Perform automatic merge on conditions
37+
- name: Automatic merge on approval
38+
conditions:
39+
- check-success=check
40+
- check-success=build
41+
- check-success=podmanbuild
42+
- check-success=dockerbuild
43+
- check-success=test
44+
- check-success=test-kubernetes
45+
- check-success=centos-ci/sink-clustered/mini-k8s-1.25
46+
- check-success=dpulls
47+
- "-draft"
48+
# Contributors should set the 'do-not-merge' label if they don't want
49+
# the PR to be (auto)merged for some reason.
50+
- "label!=do-not-merge"
51+
# A reviewer should set a label starting with 'review-in-progress' (and
52+
# suffixed by their username) in order to indicate a detailed review has been
53+
# started and not completed. This will hold the PR until the label has been
54+
# removed.
55+
- "-label~=^review-in-progress"
56+
- "base=master"
57+
# Even if there are 2 or more approvals we won't automerge if there are
58+
# any changes requested.
59+
- "#changes-requested-reviews-by=0"
60+
- or:
61+
# Any contributor's PR can be automerged with 2 (or more) reviews.
62+
- "#approved-reviews-by>=2"
63+
# A maintainer's contribution only needs 1 review BUT we give a grace
64+
# period over just two weeks for a 2nd reviewer to hopefully appear.
65+
- and:
66+
- "updated-at<15 days ago"
67+
- "author=@maintainers"
68+
- "#approved-reviews-by>=1"
69+
actions:
70+
queue: {}
71+
dismiss_reviews: {}
72+
# Conflict resolution prompt
73+
- name: Ask contributor to resolve a conflict
74+
conditions:
75+
- conflict
76+
actions:
77+
comment:
78+
message: "This pull request now has conflicts with the target branch.
79+
Please resolve these conflicts and force push the updated branch."

0 commit comments

Comments
 (0)