2019-06-23 09:10:39 -07:00
|
|
|
# Validate your changes with:
|
|
|
|
#
|
2020-06-15 08:51:46 -07:00
|
|
|
# $ curl -F 'data=@.mergify.yml' https://gh.mergify.io/validate/
|
2019-06-23 09:10:39 -07:00
|
|
|
#
|
|
|
|
# https://doc.mergify.io/
|
2019-06-21 22:50:02 -07:00
|
|
|
pull_request_rules:
|
2021-06-10 12:28:37 -07:00
|
|
|
- name: label changes from community
|
|
|
|
conditions:
|
|
|
|
- author≠@core-contributors
|
|
|
|
- author≠mergify[bot]
|
|
|
|
- author≠dependabot[bot]
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- community
|
2021-11-18 07:37:18 -08:00
|
|
|
- name: request review for community changes
|
|
|
|
conditions:
|
|
|
|
- author≠@core-contributors
|
|
|
|
- author≠mergify[bot]
|
|
|
|
- author≠dependabot[bot]
|
2021-11-24 06:41:48 -08:00
|
|
|
# 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.
|
2022-04-12 21:47:25 -07:00
|
|
|
- "#approved-reviews-by=0"
|
|
|
|
- "#commented-reviews-by=0"
|
|
|
|
- "#changes-requested-reviews-by=0"
|
2022-04-12 20:24:30 -07:00
|
|
|
- "#review-requested=0"
|
2021-11-18 07:37:18 -08:00
|
|
|
actions:
|
2021-07-16 20:07:44 -07:00
|
|
|
request_reviews:
|
|
|
|
teams:
|
|
|
|
- "@solana-labs/community-pr-subscribers"
|
2020-06-17 20:52:39 -07:00
|
|
|
- name: automatic merge (squash) on CI success
|
2020-06-15 08:20:05 -07:00
|
|
|
conditions:
|
2021-09-13 08:24:28 -07:00
|
|
|
- and:
|
|
|
|
- status-success=buildkite/solana
|
|
|
|
- status-success=ci-gate
|
|
|
|
- label=automerge
|
2022-04-14 09:29:40 -07:00
|
|
|
- label!=no-automerge
|
2021-09-13 08:24:28 -07:00
|
|
|
- author≠@dont-squash-my-commits
|
2021-09-23 21:43:52 -07:00
|
|
|
- or:
|
|
|
|
# only require travis success if docs files changed
|
|
|
|
- status-success=Travis CI - Pull Request
|
|
|
|
- -files~=^docs/
|
2021-09-13 08:24:28 -07:00
|
|
|
- or:
|
|
|
|
# only require explorer checks if explorer files changed
|
|
|
|
- status-success=check-explorer
|
|
|
|
- -files~=^explorer/
|
2021-09-13 15:16:29 -07:00
|
|
|
- or:
|
2021-11-24 06:15:43 -08:00
|
|
|
- and:
|
|
|
|
- status-success=all-web3-checks
|
|
|
|
- status-success=web3-commit-lint
|
2021-09-13 15:16:29 -07:00
|
|
|
# only require web3 checks if web3.js files changed
|
|
|
|
- -files~=^web3.js/
|
2020-06-15 08:20:05 -07:00
|
|
|
actions:
|
|
|
|
merge:
|
|
|
|
method: squash
|
2020-06-17 20:52:39 -07:00
|
|
|
# Join the dont-squash-my-commits group if you won't like your commits squashed
|
|
|
|
- name: automatic merge (rebase) on CI success
|
|
|
|
conditions:
|
2021-09-13 08:24:28 -07:00
|
|
|
- and:
|
|
|
|
- status-success=buildkite/solana
|
|
|
|
- status-success=Travis CI - Pull Request
|
|
|
|
- status-success=ci-gate
|
|
|
|
- label=automerge
|
2022-04-14 09:29:40 -07:00
|
|
|
- label!=no-automerge
|
2021-09-13 08:24:28 -07:00
|
|
|
- author=@dont-squash-my-commits
|
|
|
|
- or:
|
|
|
|
# only require explorer checks if explorer files changed
|
|
|
|
- status-success=check-explorer
|
|
|
|
- -files~=^explorer/
|
2021-09-13 15:16:29 -07:00
|
|
|
- or:
|
|
|
|
# only require web3 checks if web3.js files changed
|
2021-09-25 07:49:32 -07:00
|
|
|
- status-success=all-web3-checks
|
2021-09-13 15:16:29 -07:00
|
|
|
- -files~=^web3.js/
|
2020-06-17 20:52:39 -07:00
|
|
|
actions:
|
|
|
|
merge:
|
|
|
|
method: rebase
|
2020-06-15 08:20:05 -07:00
|
|
|
- name: remove automerge label on CI failure
|
|
|
|
conditions:
|
|
|
|
- label=automerge
|
|
|
|
- "#status-failure!=0"
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- automerge
|
|
|
|
comment:
|
2020-06-15 09:00:59 -07:00
|
|
|
message: automerge label removed due to a CI failure
|
2019-06-21 22:50:02 -07:00
|
|
|
- name: remove outdated reviews
|
|
|
|
conditions:
|
|
|
|
- base=master
|
|
|
|
actions:
|
|
|
|
dismiss_reviews:
|
|
|
|
changes_requested: true
|
2022-04-14 09:29:40 -07:00
|
|
|
- name: set automerge label on mergify backport PRs
|
2022-04-14 14:15:39 -07:00
|
|
|
conditions:
|
|
|
|
- author=mergify[bot]
|
|
|
|
- head~=^mergify/bp/
|
|
|
|
- "#status-failure=0"
|
|
|
|
- "-merged"
|
|
|
|
- label!=no-automerge
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- automerge
|
2022-03-31 23:41:55 -07:00
|
|
|
- name: v1.9 feature-gate backport
|
2019-06-22 09:00:00 -07:00
|
|
|
conditions:
|
2022-03-31 23:41:55 -07:00
|
|
|
- label=v1.9
|
|
|
|
- label=feature-gate
|
2019-06-22 09:00:00 -07:00
|
|
|
actions:
|
2022-03-31 23:41:55 -07:00
|
|
|
backport:
|
2022-04-19 02:26:21 -07:00
|
|
|
assignees:
|
|
|
|
- "{{ merged_by }}"
|
2022-03-31 23:41:55 -07:00
|
|
|
ignore_conflicts: true
|
|
|
|
labels:
|
|
|
|
- feature-gate
|
|
|
|
branches:
|
|
|
|
- v1.9
|
|
|
|
- name: v1.9 non-feature-gate backport
|
2020-12-14 13:27:50 -08:00
|
|
|
conditions:
|
2022-03-21 09:50:55 -07:00
|
|
|
- label=v1.9
|
2022-03-31 23:41:55 -07:00
|
|
|
- label!=feature-gate
|
2020-12-14 13:27:50 -08:00
|
|
|
actions:
|
|
|
|
backport:
|
2022-04-19 02:26:21 -07:00
|
|
|
assignees:
|
|
|
|
- "{{ merged_by }}"
|
2020-12-14 13:27:50 -08:00
|
|
|
ignore_conflicts: true
|
|
|
|
branches:
|
2022-03-21 09:50:55 -07:00
|
|
|
- v1.9
|
2022-03-31 23:41:55 -07:00
|
|
|
- name: v1.10 feature-gate backport
|
2021-02-17 09:01:32 -08:00
|
|
|
conditions:
|
2022-03-21 09:50:55 -07:00
|
|
|
- label=v1.10
|
2022-03-31 23:41:55 -07:00
|
|
|
- label=feature-gate
|
2021-02-17 09:01:32 -08:00
|
|
|
actions:
|
|
|
|
backport:
|
2022-04-19 02:26:21 -07:00
|
|
|
assignees:
|
|
|
|
- "{{ merged_by }}"
|
2021-02-17 09:01:32 -08:00
|
|
|
ignore_conflicts: true
|
2022-03-31 23:41:55 -07:00
|
|
|
labels:
|
|
|
|
- feature-gate
|
|
|
|
branches:
|
|
|
|
- v1.10
|
|
|
|
- name: v1.10 non-feature-gate backport
|
|
|
|
conditions:
|
|
|
|
- label=v1.10
|
|
|
|
- label!=feature-gate
|
|
|
|
actions:
|
|
|
|
backport:
|
2022-04-19 02:26:21 -07:00
|
|
|
assignees:
|
|
|
|
- "{{ merged_by }}"
|
2022-03-31 23:41:55 -07:00
|
|
|
ignore_conflicts: true
|
2021-02-17 09:01:32 -08:00
|
|
|
branches:
|
2022-03-21 09:50:55 -07:00
|
|
|
- v1.10
|
2022-01-27 09:00:27 -08:00
|
|
|
|
|
|
|
commands_restrictions:
|
|
|
|
# The author of copied PRs is the Mergify user.
|
|
|
|
# Restrict `copy` access to Core Contributors
|
|
|
|
copy:
|
|
|
|
conditions:
|
|
|
|
- author=@core-contributors
|