-
Notifications
You must be signed in to change notification settings - Fork 3
/
.mergify.yml
48 lines (47 loc) · 1.32 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
pull_request_rules:
- name: Add community label to outside contributions
conditions:
- author≠@core-contributors
- author≠@spl-maintainers
- author≠@spl-triage
- author≠@spl-write
- author≠mergify[bot]
- author≠dependabot[bot]
- author≠github-actions[bot]
actions:
label:
add:
- community
- name: Automatic merge (squash) on CI success
conditions:
- and:
- or:
- and:
- base=maintenance/v1.x
- and:
- status-success~=^Lint, Build, and Test
- status-success="Validate commit message"
- and:
- base!=maintenance/v1.x
- status-success=all-web3-checks
- label=automerge
- label!=no-automerge
actions:
merge:
method: squash
- name: Remove automerge label on CI failure
conditions:
- label=automerge
- '#status-failure!=0'
actions:
label:
remove:
- automerge
comment:
message: Automerge label removed due to a CI failure
commands_restrictions:
# The author of copied PRs is the Mergify user.
# Restrict `copy` access to Core Contributors
copy:
conditions:
- author=@core-contributors