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 |
| 10 | - or: |
| 11 | - base=version-13 |
| 12 | - base=version-12 |
| 13 | actions: |
| 14 | close: |
| 15 | comment: |
| 16 | message: | |
| 17 | @{{author}}, thanks for the contribution, but we do not accept pull requests on a stable branch. Please raise PR on an appropriate hotfix branch. |
| 18 | https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#which-branch |
| 19 | |
| 20 | - name: backport to version-13-hotfix |
| 21 | conditions: |
| 22 | - label="backport version-13-hotfix" |
| 23 | actions: |
| 24 | backport: |
| 25 | branches: |
| 26 | - version-13-hotfix |
| 27 | assignees: |
| 28 | - "{{ author }}" |
| 29 | |
| 30 | - name: backport to version-13-pre-release |
| 31 | conditions: |
| 32 | - label="backport version-13-pre-release" |
| 33 | actions: |
| 34 | backport: |
| 35 | branches: |
| 36 | - version-13-pre-release |
| 37 | assignees: |
| 38 | - "{{ author }}" |
| 39 | |
| 40 | - name: backport to version-12-hotfix |
| 41 | conditions: |
| 42 | - label="backport version-12-hotfix" |
| 43 | actions: |
| 44 | backport: |
| 45 | branches: |
| 46 | - version-12-hotfix |
| 47 | assignees: |
| 48 | - "{{ author }}" |
| 49 | |
| 50 | - name: backport to version-12-pre-release |
| 51 | conditions: |
| 52 | - label="backport version-12-pre-release" |
| 53 | actions: |
| 54 | backport: |
| 55 | branches: |
| 56 | - version-12-pre-release |
| 57 | assignees: |
| 58 | - "{{ author }}" |