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 | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 20 | actions: |
| 21 | close: |
| 22 | comment: |
| 23 | message: | |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 24 | @{{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] | 25 | https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#which-branch |
| 26 | |
Ankush Menat | 3701cdb | 2022-06-13 12:14:31 +0530 | [diff] [blame] | 27 | - name: Auto-close PRs on pre-release branch |
| 28 | conditions: |
| 29 | - base=version-13-pre-release |
| 30 | actions: |
| 31 | close: |
| 32 | comment: |
| 33 | message: | |
| 34 | @{{author}}, pre-release branch is not maintained anymore. Releases are directly done by merging hotfix branch to stable branches. |
| 35 | |
| 36 | |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 37 | - name: backport to develop |
| 38 | conditions: |
| 39 | - label="backport develop" |
| 40 | actions: |
| 41 | backport: |
| 42 | branches: |
| 43 | - develop |
| 44 | assignees: |
| 45 | - "{{ author }}" |
| 46 | |
| 47 | - name: backport to version-14-hotfix |
| 48 | conditions: |
| 49 | - label="backport version-14-hotfix" |
| 50 | actions: |
| 51 | backport: |
| 52 | branches: |
| 53 | - version-14-hotfix |
| 54 | assignees: |
| 55 | - "{{ author }}" |
| 56 | |
| 57 | - name: backport to version-14-pre-release |
| 58 | conditions: |
| 59 | - label="backport version-14-pre-release" |
| 60 | actions: |
| 61 | backport: |
| 62 | branches: |
| 63 | - version-14-pre-release |
| 64 | assignees: |
| 65 | - "{{ author }}" |
| 66 | |
Ankush Menat | 4159361 | 2021-10-04 18:02:37 +0530 | [diff] [blame] | 67 | - name: backport to version-13-hotfix |
| 68 | conditions: |
| 69 | - label="backport version-13-hotfix" |
| 70 | actions: |
| 71 | backport: |
| 72 | branches: |
| 73 | - version-13-hotfix |
| 74 | assignees: |
| 75 | - "{{ author }}" |
| 76 | |
| 77 | - name: backport to version-13-pre-release |
| 78 | conditions: |
| 79 | - label="backport version-13-pre-release" |
| 80 | actions: |
| 81 | backport: |
| 82 | branches: |
| 83 | - version-13-pre-release |
| 84 | assignees: |
| 85 | - "{{ author }}" |
| 86 | |
| 87 | - name: backport to version-12-hotfix |
| 88 | conditions: |
| 89 | - label="backport version-12-hotfix" |
| 90 | actions: |
| 91 | backport: |
| 92 | branches: |
| 93 | - version-12-hotfix |
| 94 | assignees: |
| 95 | - "{{ author }}" |
| 96 | |
| 97 | - name: backport to version-12-pre-release |
| 98 | conditions: |
| 99 | - label="backport version-12-pre-release" |
| 100 | actions: |
| 101 | backport: |
| 102 | branches: |
| 103 | - version-12-pre-release |
| 104 | assignees: |
Ankush Menat | 1f9ce92 | 2022-02-21 14:29:54 +0530 | [diff] [blame] | 105 | - "{{ author }}" |
Ankush Menat | bc2c601 | 2022-04-07 17:53:01 +0530 | [diff] [blame] | 106 | |
| 107 | - name: Automatic merge on CI success and review |
| 108 | conditions: |
| 109 | - status-success=linters |
| 110 | - status-success=Sider |
| 111 | - status-success=Semantic Pull Request |
| 112 | - status-success=Patch Test |
| 113 | - status-success=Python Unit Tests (1) |
| 114 | - status-success=Python Unit Tests (2) |
| 115 | - status-success=Python Unit Tests (3) |
| 116 | - label!=dont-merge |
| 117 | - label!=squash |
| 118 | - "#approved-reviews-by>=1" |
| 119 | actions: |
| 120 | merge: |
| 121 | method: merge |
| 122 | - name: Automatic squash on CI success and review |
| 123 | conditions: |
| 124 | - status-success=linters |
| 125 | - status-success=Sider |
| 126 | - status-success=Patch Test |
| 127 | - status-success=Python Unit Tests (1) |
| 128 | - status-success=Python Unit Tests (2) |
| 129 | - status-success=Python Unit Tests (3) |
| 130 | - label!=dont-merge |
| 131 | - label=squash |
| 132 | - "#approved-reviews-by>=1" |
| 133 | actions: |
| 134 | merge: |
| 135 | method: squash |
| 136 | commit_message_template: | |
| 137 | {{ title }} (#{{ number }}) |
| 138 | |
| 139 | {{ body }} |