-
Notifications
You must be signed in to change notification settings - Fork 26
/
.mergify.yml
60 lines (55 loc) · 1.45 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
pull_request_rules:
- name: Auto-close PRs on stable branch
conditions:
- author!=aakvatech
- author!=av-dev2
- author!=mergify[bot]
- base=version-14
actions:
close:
comment:
message: |
@{{author}}, thanks for the contribution, but we do not accept pull requests on a stable branch. Please raise PR on an appropriate hotfix branch.
- name: Assign author to review conflict and add label of 'conflict'
conditions:
- conflict
actions:
label:
add:
- conflict
assign:
add_users:
- aakvatech
- "{{author}}"
comment:
message: "@{{author}} this pull request is now in conflict 😩"
- name: Automatic merge pull request to develop
conditions:
- and:
- and:
- base = develop
- label != conflict
- or:
- author = aakvatech
- author = av-dev2
actions:
merge:
method: merge
- name: backport to version-14-hotfix
conditions:
- label = version-14-hotfix
actions:
backport:
branches:
- version-14-hotfix
assignees:
- aakvatech
- "{{author}}"
- name: Automatic merge after review to version-14-hotfix
conditions:
- base = version-14-hotfix
- label != conflict
- "#approved-reviews-by >= 1"
actions:
merge:
method: merge