Skip to content

Commit c05bb58

Browse files
authored
initial Mergify configuration (#7108)
Signed-off-by: Andrei Neagu <null>
1 parent edfad1c commit c05bb58

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/mergify.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
pull_request_rules:
2+
- name: Automatic merge
3+
description: Conditions required for automatic merging of a PR
4+
conditions:
5+
# let Mergify know that the PR can be merged (added manually)
6+
- label = 🤖-automerge
7+
# block Mergify from merging the PR (added manually)
8+
- label != 🤖-do-not-merge
9+
10+
# list of CI checks that need to pass in order for the PR to be merged
11+
- check-success=unit-tests
12+
- check-success=integration-tests
13+
- check-success=system-tests
14+
15+
# Check for required reviews
16+
- "#approved-reviews-by>=2" # Requires 2 approving reviews
17+
- "#changes-requested-reviews-by=0" # No changes requested
18+
- "#review-threads-unresolved=0" # All review threads resolved
19+
20+
# Optional but recommended checks
21+
- base=master
22+
- -draft # PR is not in draft state
23+
- -conflict # No merge conflicts
24+
actions:
25+
merge:
26+
27+
28+
- name: retry CI on failure
29+
conditions:
30+
- base=master
31+
- or:
32+
- check-failure=unit-tests
33+
- check-failure=integration-tests
34+
- check-failure=system-tests
35+
actions:
36+
github_actions:
37+
workflow:
38+
dispatch:
39+
- workflow: .github/workflows/ci-testing-deploy.yml
40+

0 commit comments

Comments
 (0)