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