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