-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mergify.yml
128 lines (119 loc) · 4.07 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
queue_rules:
- name: default
conditions:
- -conflict # skip PRs with conflicts
- -draft # filter-out GH draft PRs
- -closed # filter-out closed GH PRs
- base=main
- label=automerge
- check-success=build (windows-latest)
- check-success=build (ubuntu-latest)
- check-success=build (macos-latest)
- check-success=Codacy Static Code Analysis
- check-success=DCO
- check-success=WIP
pull_request_rules:
# for check failures / WIP pending check.
- name: Add enhancement label
conditions:
- check-pending=build (windows-latest)
- check-pending=build (ubuntu-latest)
- check-pending=build (macos-latest)
- -closed
- -label=enhancement
actions:
label:
add:
- enhancement
- name: Add automerge label
conditions:
- check-success=build (windows-latest)
- check-success=build (ubuntu-latest)
- check-success=build (macos-latest)
- -draft
- -closed
- -conflict
- -label=automerge
- author~=^(AraHaan|CatGirlsAreLife|JunichiSama|xioke|Elskom-gitsync)$
actions:
label:
add:
- automerge
- name: Automatic message on build failure
conditions:
- check-failure=build (windows-latest)
- check-failure=build (ubuntu-latest)
- check-failure=build (macos-latest)
- -draft
- -closed
actions:
comment:
message: |
This PR's build has failed. Ensure it passes before they can be scheduled for automatic merge.
- name: Automatic message on security failure
conditions:
- check-failure=Codacy Static Code Analysis
- -draft
- -closed
actions:
comment:
message: |
This PR's security check has failed. Ensure it passes before they can be scheduled for automatic merge.
- name: Automatic message on signoff failure
conditions:
- check-failure=DCO
- -draft
- -closed
actions:
comment:
message: |
This PR does not add the DCO signoff. Ensure it does before they can be scheduled for automatic merge.
To do that click the details link on the check below to find the steps to resolve this and then force push using ``git push --force`` after it has been completed.
If the PR has multiple commits to simplify it you can also run ``git rebase -i HEAD~x`` where x is the number of commits inside of the PR, then in the interactive program that is opened to edit the data change every line under the first one that starts with ``pick`` to ``fixup`` then save and exit the program git opens, after that git will rebase them into each other and squashes them into a single commit where then you can run ``git commit --amend --signoff`` then force push.
- name: Automatic message on WIP
conditions:
- check-pending=WIP
- -draft
- -closed
actions:
comment:
message: This PR is WIP, when you complete the work remember to unset the WIP state in the title of this PR.
- name: Automatic message on conflict
conditions:
- -draft
- conflict
actions:
comment:
message: |
This PR is conflicted :sob:.
- name: Automatic merge when automerge label added
conditions:
- -conflict # skip PRs with conflicts
- -draft # filter-out GH draft PRs
- -closed # filter-out closed GH PRs
- base=main
- label=automerge
- check-success=build (windows-latest)
- check-success=build (ubuntu-latest)
- check-success=build (macos-latest)
- check-success=Codacy Static Code Analysis
- check-success=DCO
- check-success=WIP
actions:
comment:
message: This pull request is about to be automerged.
review:
type: APPROVE
message: Automatically approving since automerge label was found.
queue:
name: default
method: squash
update_method: rebase
- name: Remove automerge label
conditions:
- closed
- label=automerge
actions:
label:
remove:
- automerge