blob: cc8c0802f12f4b2f36dc9429bf89dc667fbf150c [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 Menat41593612021-10-04 18:02:37 +053012 - or:
13 - base=version-13
14 - base=version-12
15 actions:
16 close:
17 comment:
18 message: |
Ankush Menat1f9ce922022-02-21 14:29:54 +053019 @{{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 +053020 https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#which-branch
21
Ankush Menat1f9ce922022-02-21 14:29:54 +053022 - name: backport to develop
23 conditions:
24 - label="backport develop"
25 actions:
26 backport:
27 branches:
28 - develop
29 assignees:
30 - "{{ author }}"
31
32 - name: backport to version-14-hotfix
33 conditions:
34 - label="backport version-14-hotfix"
35 actions:
36 backport:
37 branches:
38 - version-14-hotfix
39 assignees:
40 - "{{ author }}"
41
42 - name: backport to version-14-pre-release
43 conditions:
44 - label="backport version-14-pre-release"
45 actions:
46 backport:
47 branches:
48 - version-14-pre-release
49 assignees:
50 - "{{ author }}"
51
Ankush Menat41593612021-10-04 18:02:37 +053052 - name: backport to version-13-hotfix
53 conditions:
54 - label="backport version-13-hotfix"
55 actions:
56 backport:
57 branches:
58 - version-13-hotfix
59 assignees:
60 - "{{ author }}"
61
62 - name: backport to version-13-pre-release
63 conditions:
64 - label="backport version-13-pre-release"
65 actions:
66 backport:
67 branches:
68 - version-13-pre-release
69 assignees:
70 - "{{ author }}"
71
72 - name: backport to version-12-hotfix
73 conditions:
74 - label="backport version-12-hotfix"
75 actions:
76 backport:
77 branches:
78 - version-12-hotfix
79 assignees:
80 - "{{ author }}"
81
82 - name: backport to version-12-pre-release
83 conditions:
84 - label="backport version-12-pre-release"
85 actions:
86 backport:
87 branches:
88 - version-12-pre-release
89 assignees:
Ankush Menat1f9ce922022-02-21 14:29:54 +053090 - "{{ author }}"
Ankush Menatbc2c6012022-04-07 17:53:01 +053091
92 - name: Automatic merge on CI success and review
93 conditions:
94 - status-success=linters
95 - status-success=Sider
96 - status-success=Semantic Pull Request
97 - status-success=Patch Test
98 - status-success=Python Unit Tests (1)
99 - status-success=Python Unit Tests (2)
100 - status-success=Python Unit Tests (3)
101 - label!=dont-merge
102 - label!=squash
103 - "#approved-reviews-by>=1"
104 actions:
105 merge:
106 method: merge
107 - name: Automatic squash on CI success and review
108 conditions:
109 - status-success=linters
110 - status-success=Sider
111 - status-success=Patch Test
112 - status-success=Python Unit Tests (1)
113 - status-success=Python Unit Tests (2)
114 - status-success=Python Unit Tests (3)
115 - label!=dont-merge
116 - label=squash
117 - "#approved-reviews-by>=1"
118 actions:
119 merge:
120 method: squash
121 commit_message_template: |
122 {{ title }} (#{{ number }})
123
124 {{ body }}