-
Notifications
You must be signed in to change notification settings - Fork 22
/
.mergify.yml
61 lines (61 loc) · 1.42 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
pull_request_rules:
- name: branch name check
conditions:
- "head~=^(master|main)/"
- "-merged"
- "-closed"
actions:
close:
message: |
@{{author}}
Wrong Branch Name: {{head}}
Please use a meaningful name instead.
This Pull Request will be closed.
label:
add:
- "invalid"
- name: automatic merge for ImgBot pull requests
conditions:
- author=imgbot[bot]
- check-success=test
actions:
merge:
method: rebase
- name: automatic approve for Renovate pull requests
conditions:
- author=renovate[bot]
- check-success=test
- "-conflict"
- "-closed"
actions:
review:
type: APPROVE
message: |
Mergify Automatic Approve Successful Renovate PR
- name: automatic merge for Renovate pull requests
conditions:
- author=renovate[bot]
- check-success=test
actions:
merge:
method: rebase
- name: delete head branch after merge
conditions:
- merged
actions:
delete_head_branch: {}
- name: automatic label Renovate pull requests
conditions:
- author=renovate[bot]
actions:
label:
add:
- "dependency"
- "bot"
- name: automatic label ImgBot pull requests
conditions:
- author=imgbot[bot]
actions:
label:
add:
- "bot"