Ankush Menat | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 1 | pull_request_rules: |
| 2 | - name: Auto-close PRs on stable branch |
| 3 | conditions: |
| 4 | - and: |
| 5 | - and: |
| 6 | - author!=surajshetty3416 |
| 7 | - author!=gavindsouza |
| 8 | - author!=rohitwaghchaure |
| 9 | - author!=nabinhait |
Ankush Menat | dc25766 | 2022-03-14 18:24:18 +0530 | [diff] [blame] | 10 | - author!=ankush |
| 11 | - author!=deepeshgarg007 |
Ankush Menat | 8043f4f | 2022-09-13 15:14:53 +0530 | [diff] [blame] | 12 | - author!=frappe-pr-bot |
Ankush Menat | 3701cdb | 2022-06-13 12:14:31 +0530 | [diff] [blame] | 13 | - author!=mergify[bot] |
| 14 | |
Ankush Menat | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 15 | - or: |
| 16 | - base=version-13 |
| 17 | - base=version-12 |
Ankush Menat | 5744958 | 2023-08-11 16:20:50 +0530 | [diff] [blame] | 18 | - base=version-14 |
| 19 | - base=version-15 |
Ankush Menat | 40cdde8 | 2023-10-19 15:52:53 +0530 | [diff] [blame] | 20 | - base=version-16 |
Ankush Menat | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 21 | actions: |
| 22 | close: |
| 23 | comment: |
| 24 | message: | |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 25 | @{{author}}, thanks for the contribution, but we do not accept pull requests on a stable branch. Please raise PR on an appropriate hotfix branch. |
Ankush Menat | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 26 | https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#which-branch |
| 27 | |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 28 | - name: backport to develop |
| 29 | conditions: |
| 30 | - label="backport develop" |
| 31 | actions: |
| 32 | backport: |
| 33 | branches: |
| 34 | - develop |
| 35 | assignees: |
| 36 | - "{{ author }}" |
| 37 | |
| 38 | - name: backport to version-14-hotfix |
| 39 | conditions: |
| 40 | - label="backport version-14-hotfix" |
| 41 | actions: |
| 42 | backport: |
| 43 | branches: |
| 44 | - version-14-hotfix |
| 45 | assignees: |
| 46 | - "{{ author }}" |
| 47 | |
Ankush Menat | 40cdde8 | 2023-10-19 15:52:53 +0530 | [diff] [blame] | 48 | - name: backport to version-15-hotfix |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 49 | conditions: |
Ankush Menat | 40cdde8 | 2023-10-19 15:52:53 +0530 | [diff] [blame] | 50 | - label="backport version-15-hotfix" |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 51 | actions: |
| 52 | backport: |
| 53 | branches: |
Ankush Menat | 40cdde8 | 2023-10-19 15:52:53 +0530 | [diff] [blame] | 54 | - version-15-hotfix |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 55 | assignees: |
| 56 | - "{{ author }}" |
| 57 | |
Ankush Menat | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 58 | - name: backport to version-13-hotfix |
| 59 | conditions: |
| 60 | - label="backport version-13-hotfix" |
| 61 | actions: |
| 62 | backport: |
| 63 | branches: |
| 64 | - version-13-hotfix |
| 65 | assignees: |
| 66 | - "{{ author }}" |
| 67 | |
Ankush Menat | bc2c601 | 2022-04-07 17:53:01 +0530 | [diff] [blame] | 68 | |
| 69 | - name: Automatic merge on CI success and review |
| 70 | conditions: |
| 71 | - status-success=linters |
| 72 | - status-success=Sider |
| 73 | - status-success=Semantic Pull Request |
| 74 | - status-success=Patch Test |
| 75 | - status-success=Python Unit Tests (1) |
| 76 | - status-success=Python Unit Tests (2) |
| 77 | - status-success=Python Unit Tests (3) |
| 78 | - label!=dont-merge |
| 79 | - label!=squash |
| 80 | - "#approved-reviews-by>=1" |
| 81 | actions: |
| 82 | merge: |
| 83 | method: merge |
| 84 | - name: Automatic squash on CI success and review |
| 85 | conditions: |
| 86 | - status-success=linters |
| 87 | - status-success=Sider |
| 88 | - status-success=Patch Test |
| 89 | - status-success=Python Unit Tests (1) |
| 90 | - status-success=Python Unit Tests (2) |
| 91 | - status-success=Python Unit Tests (3) |
| 92 | - label!=dont-merge |
| 93 | - label=squash |
| 94 | - "#approved-reviews-by>=1" |
| 95 | actions: |
| 96 | merge: |
| 97 | method: squash |
| 98 | commit_message_template: | |
| 99 | {{ title }} (#{{ number }}) |
| 100 | |
| 101 | {{ body }} |