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