forked from solana-labs/solana-web3.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
57 lines (56 loc) · 1.73 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
pull_request_rules:
- name: Add community label to outside contributions
conditions:
- author≠@core-contributors
- author≠mergify[bot]
- author≠dependabot[bot]
- author≠github-actions[bot]
actions:
label:
add:
- community
- name: Request review of community contributions from community PR subscribers
conditions:
- author≠@core-contributors
- author≠mergify[bot]
- author≠dependabot[bot]
- author≠github-actions[bot]
# Only request reviews from the PR subscribers group if no one
# has reviewed the community PR yet. These checks only match
# reviewers with admin, write or maintain permission on the repository.
- '#approved-reviews-by=0'
- '#commented-reviews-by=0'
- '#changes-requested-reviews-by=0'
- '#review-requested=0'
actions:
request_reviews:
teams:
- '@solana-labs/community-pr-subscribers'
- name: Automatic merge (squash) on CI success
conditions:
- and:
- status-success=all-web3-checks
- or:
- -files~=^packages/library-legacy/
- status-success="Validate commit message"
- 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