|
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 |
| 1 | +queue_rules: |
| 2 | + - name: default |
| 3 | + queue_conditions: |
| 4 | + # general prerequisits fo accept the PR in the queue |
| 5 | + - label=🤖-automerge # let Mergify know that the PR can be merged (added manually) |
| 6 | + - label!=🤖-do-not-merge # block Mergify from merging the PR (added manually) |
| 7 | + - base=master |
| 8 | + - -draft # PR is not in draft state |
| 9 | + - -conflict # No merge conflicts |
14 | 10 |
|
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 |
| 11 | + # Check for required reviews |
| 12 | + - "#approved-reviews-by>=2" # Requires 2 approving reviews |
| 13 | + - "#changes-requested-reviews-by=0" # No changes requested |
| 14 | + - "#review-threads-unresolved=0" # All review threads resolved |
19 | 15 |
|
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: |
| 16 | + merge_conditions: |
| 17 | + # list of CI checks that need to pass |
| 18 | + - check-success=unit-tests |
| 19 | + - check-success=integration-tests |
| 20 | + - check-success=system-tests |
26 | 21 |
|
27 | | - - name: automatic update for PR ready to be merged |
28 | | - conditions: |
29 | | - - -draft |
30 | | - - label=🤖-automerge |
31 | | - actions: |
32 | | - update: |
| 22 | +pull_request_rules: |
| 23 | + - name: update branch if behind master |
| 24 | + conditions: |
| 25 | + - queue-name=default # only run if already queued |
| 26 | + - label=🤖-automerge |
| 27 | + - label!=🤖-do-not-merge |
| 28 | + - base=master |
| 29 | + actions: |
| 30 | + update: |
33 | 31 |
|
34 | | - - name: retry CI on failure |
35 | | - conditions: |
36 | | - - base=master |
37 | | - - or: |
| 32 | + - name: retry CI on fails (used for flaky tests) |
| 33 | + conditions: |
| 34 | + - queue-name=default # only run if already queued |
| 35 | + - label=🤖-automerge |
| 36 | + - label!=🤖-do-not-merge |
| 37 | + - base=master |
| 38 | + - or: |
38 | 39 | - check-failure=unit-tests |
39 | 40 | - check-failure=integration-tests |
40 | 41 | - check-failure=system-tests |
41 | | - actions: |
42 | | - github_actions: |
43 | | - workflow: |
44 | | - dispatch: |
| 42 | + actions: |
| 43 | + github_actions: |
| 44 | + workflow: |
| 45 | + dispatch: |
45 | 46 | - workflow: .github/workflows/ci-testing-deploy.yml |
46 | | - |
0 commit comments