|
1 | 1 | # https://docs.mergify.io/conditions.html |
2 | 2 | # https://docs.mergify.io/actions.html |
3 | 3 | pull_request_rules: |
4 | | - - name: "approve automated PRs that have passed checks" |
5 | | - conditions: |
6 | | - - "author~=^(cloudpossebot|renovate\\[bot\\])$" |
7 | | - - "base=main" |
8 | | - - "-closed" |
9 | | - - "head~=^(auto-update|renovate)/.*" |
10 | | - - "check-success=test/bats" |
11 | | - - "check-success=test/readme" |
12 | | - - "check-success=test/terratest" |
13 | | - - "check-success=validate-codeowners" |
14 | | - actions: |
15 | | - review: |
16 | | - type: "APPROVE" |
17 | | - bot_account: "cloudposse-mergebot" |
18 | | - message: "We've automatically approved this PR because the checks from the automated Pull Request have passed." |
| 4 | +- name: "approve automated PRs that have passed checks" |
| 5 | + conditions: |
| 6 | + - "author~=^(cloudpossebot|renovate\\[bot\\])$" |
| 7 | + - "base=master" |
| 8 | + - "-closed" |
| 9 | + - "head~=^(auto-update|renovate)/.*" |
| 10 | + - "check-success=test/bats" |
| 11 | + - "check-success=test/readme" |
| 12 | + - "check-success=test/terratest" |
| 13 | + - "check-success=validate-codeowners" |
| 14 | + actions: |
| 15 | + review: |
| 16 | + type: "APPROVE" |
| 17 | + bot_account: "cloudposse-mergebot" |
| 18 | + message: "We've automatically approved this PR because the checks from the automated Pull Request have passed." |
19 | 19 |
|
20 | | - - name: "merge automated PRs when approved and tests pass" |
21 | | - conditions: |
22 | | - - "author~=^(cloudpossebot|renovate\\[bot\\])$" |
23 | | - - "base=main" |
24 | | - - "-closed" |
25 | | - - "head~=^(auto-update|renovate)/.*" |
26 | | - - "check-success=test/bats" |
27 | | - - "check-success=test/readme" |
28 | | - - "check-success=test/terratest" |
29 | | - - "check-success=validate-codeowners" |
30 | | - - "#approved-reviews-by>=1" |
31 | | - - "#changes-requested-reviews-by=0" |
32 | | - - "#commented-reviews-by=0" |
33 | | - actions: |
34 | | - merge: |
35 | | - method: "squash" |
| 20 | +- name: "merge automated PRs when approved and tests pass" |
| 21 | + conditions: |
| 22 | + - "author~=^(cloudpossebot|renovate\\[bot\\])$" |
| 23 | + - "base=master" |
| 24 | + - "-closed" |
| 25 | + - "head~=^(auto-update|renovate)/.*" |
| 26 | + - "check-success=test/bats" |
| 27 | + - "check-success=test/readme" |
| 28 | + - "check-success=test/terratest" |
| 29 | + - "check-success=validate-codeowners" |
| 30 | + - "#approved-reviews-by>=1" |
| 31 | + - "#changes-requested-reviews-by=0" |
| 32 | + - "#commented-reviews-by=0" |
| 33 | + actions: |
| 34 | + merge: |
| 35 | + method: "squash" |
36 | 36 |
|
37 | | - - name: "delete the head branch after merge" |
38 | | - conditions: |
39 | | - - "merged" |
40 | | - actions: |
41 | | - delete_head_branch: {} |
| 37 | +- name: "delete the head branch after merge" |
| 38 | + conditions: |
| 39 | + - "merged" |
| 40 | + actions: |
| 41 | + delete_head_branch: {} |
42 | 42 |
|
43 | | - - name: "ask to resolve conflict" |
44 | | - conditions: |
45 | | - - "conflict" |
46 | | - - "-closed" |
47 | | - actions: |
48 | | - comment: |
49 | | - message: "This pull request is now in conflict. Could you fix it @{{author}}? 🙏" |
| 43 | +- name: "ask to resolve conflict" |
| 44 | + conditions: |
| 45 | + - "conflict" |
| 46 | + - "-closed" |
| 47 | + actions: |
| 48 | + comment: |
| 49 | + message: "This pull request is now in conflict. Could you fix it @{{author}}? 🙏" |
50 | 50 |
|
51 | | - - name: "remove outdated reviews" |
52 | | - conditions: |
53 | | - - "base=main" |
54 | | - actions: |
55 | | - dismiss_reviews: |
56 | | - changes_requested: true |
57 | | - approved: true |
58 | | - message: "This Pull Request has been updated, so we're dismissing all reviews." |
| 51 | +- name: "remove outdated reviews" |
| 52 | + conditions: |
| 53 | + - "base=master" |
| 54 | + actions: |
| 55 | + dismiss_reviews: |
| 56 | + changes_requested: true |
| 57 | + approved: true |
| 58 | + message: "This Pull Request has been updated, so we're dismissing all reviews." |
| 59 | + |
| 60 | +- name: "close Pull Requests without files changed" |
| 61 | + conditions: |
| 62 | + - "#files=0" |
| 63 | + actions: |
| 64 | + close: |
| 65 | + message: "This pull request has been automatically closed by Mergify because there are no longer any changes." |
0 commit comments