solana/.mergify.yml

107 lines
2.6 KiB
YAML
Raw Normal View History

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:
- name: label changes from community
conditions:
- author≠@core-contributors
- author≠mergify[bot]
- author≠dependabot[bot]
actions:
label:
add:
- community
request_reviews:
teams:
- "@solana-labs/community-pr-subscribers"
- name: automatic merge (squash) on CI success
2020-06-15 08:20:05 -07:00
conditions:
- and:
- status-success=buildkite/solana
- status-success=Travis CI - Pull Request
- status-success=ci-gate
- label=automerge
- author≠@dont-squash-my-commits
- or:
# only require explorer checks if explorer files changed
- status-success=check-explorer
- -files~=^explorer/
2020-06-15 08:20:05 -07:00
actions:
merge:
method: squash
# Join the dont-squash-my-commits group if you won't like your commits squashed
- name: automatic merge (rebase) on CI success
conditions:
- and:
- status-success=buildkite/solana
- status-success=Travis CI - Pull Request
- status-success=ci-gate
- label=automerge
- author=@dont-squash-my-commits
- or:
# only require explorer checks if explorer files changed
- status-success=check-explorer
- -files~=^explorer/
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:
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
- name: set automerge label on mergify backport PRs
conditions:
- author=mergify[bot]
- head~=^mergify/bp/
2019-06-23 09:09:12 -07:00
- "#status-failure=0"
actions:
label:
add:
- automerge
2021-05-27 08:24:37 -07:00
- name: v1.6 backport
2020-08-05 11:31:04 -07:00
conditions:
2021-05-27 08:24:37 -07:00
- label=v1.6
2020-08-05 11:31:04 -07:00
actions:
backport:
ignore_conflicts: true
branches:
2021-05-27 08:24:37 -07:00
- v1.6
- name: v1.7 backport
2020-12-14 13:27:50 -08:00
conditions:
2021-05-27 08:24:37 -07:00
- label=v1.7
2020-12-14 13:27:50 -08:00
actions:
backport:
ignore_conflicts: true
branches:
2021-05-27 08:24:37 -07:00
- v1.7
- name: v1.8 backport
2020-12-14 13:27:50 -08:00
conditions:
2021-05-27 08:24:37 -07:00
- label=v1.8
2020-12-14 13:27:50 -08:00
actions:
backport:
ignore_conflicts: true
branches:
2021-05-27 08:24:37 -07:00
- v1.8
- name: v1.9 backport
2021-02-17 09:01:32 -08:00
conditions:
2021-05-27 08:24:37 -07:00
- label=v1.9
2021-02-17 09:01:32 -08:00
actions:
backport:
ignore_conflicts: true
branches:
2021-05-27 08:24:37 -07:00
- v1.9