| 
1 | 1 | pull_request_rules:  | 
2 |  | -  - name: automatic update for PR ready to be merged  | 
3 |  | -    conditions:  | 
4 |  | -      - -draft  | 
5 |  | -      - label=🤖-automerge  | 
6 |  | -    actions:  | 
7 |  | -      update:  | 
8 |  | -  - name: Automatic merge  | 
9 |  | -    description: Conditions required for automatic merging of a PR  | 
10 |  | -    conditions:  | 
11 |  | -      - label = 🤖-automerge  | 
12 |  | -      - label != 🤖-do-not-merge  | 
13 |  | -      - check-success=unit-tests  | 
14 |  | -      - check-success=integration-tests  | 
15 |  | -      - check-success=system-tests  | 
16 |  | -      - "#approved-reviews-by>=2"  | 
17 |  | -      - "#changes-requested-reviews-by=0"  | 
18 |  | -      - "#review-threads-unresolved=0"  | 
19 |  | -      - base=master  | 
20 |  | -      - -draft  | 
21 |  | -      - -conflict  | 
22 |  | -    actions:  | 
23 |  | -      merge:  | 
24 |  | -  - name: retry CI on failure  | 
25 |  | -    conditions:  | 
26 |  | -      - base=master  | 
27 |  | -      - or:  | 
 | 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 | +    - name: automatic update for PR ready to be merged  | 
 | 28 | +      conditions:  | 
 | 29 | +        - -draft  | 
 | 30 | +        - label=🤖-automerge  | 
 | 31 | +      actions:  | 
 | 32 | +        update:  | 
 | 33 | + | 
 | 34 | +    - name: retry CI on failure  | 
 | 35 | +      conditions:  | 
 | 36 | +        - base=master  | 
 | 37 | +        - or:  | 
28 | 38 |           - check-failure=unit-tests  | 
29 | 39 |           - check-failure=integration-tests  | 
30 | 40 |           - check-failure=system-tests  | 
31 |  | -    actions:  | 
32 |  | -      github_actions:  | 
33 |  | -        workflow:  | 
34 |  | -          dispatch:  | 
 | 41 | +      actions:  | 
 | 42 | +        github_actions:  | 
 | 43 | +          workflow:  | 
 | 44 | +            dispatch:  | 
35 | 45 |             - workflow: .github/workflows/ci-testing-deploy.yml  | 
 | 46 | + | 
0 commit comments