blob: 53596060b1f4092358e10a5f0911770cc31c3e82 [file] [log] [blame]
Ankush Menat41593612021-10-04 18:02:37 +05301pull_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 Menatdc257662022-03-14 18:24:18 +053010 - author!=ankush
11 - author!=deepeshgarg007
Ankush Menat8043f4f2022-09-13 15:14:53 +053012 - author!=frappe-pr-bot
Ankush Menat3701cdb2022-06-13 12:14:31 +053013 - author!=mergify[bot]
14
Ankush Menat41593612021-10-04 18:02:37 +053015 - or:
16 - base=version-13
17 - base=version-12
Ankush Menat57449582023-08-11 16:20:50 +053018 - base=version-14
19 - base=version-15
Ankush Menat40cdde82023-10-19 15:52:53 +053020 - base=version-16
Ankush Menat41593612021-10-04 18:02:37 +053021 actions:
22 close:
23 comment:
24 message: |
Ankush Menat1f9ce922022-02-21 14:29:54 +053025 @{{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 Menat41593612021-10-04 18:02:37 +053026 https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#which-branch
27
Ankush Menat1f9ce922022-02-21 14:29:54 +053028 - 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 Menat40cdde82023-10-19 15:52:53 +053048 - name: backport to version-15-hotfix
Ankush Menat1f9ce922022-02-21 14:29:54 +053049 conditions:
Ankush Menat40cdde82023-10-19 15:52:53 +053050 - label="backport version-15-hotfix"
Ankush Menat1f9ce922022-02-21 14:29:54 +053051 actions:
52 backport:
53 branches:
Ankush Menat40cdde82023-10-19 15:52:53 +053054 - version-15-hotfix
Ankush Menat1f9ce922022-02-21 14:29:54 +053055 assignees:
56 - "{{ author }}"
57
Ankush Menat41593612021-10-04 18:02:37 +053058 - 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 Menatbc2c6012022-04-07 17:53:01 +053068
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 }}