Av1an/.mergify.yml
Josh Holmer 4cac50136f Additional changes for mergify
- Remove usage of deprecated "strict" param by using queues
- Add auto merge for stable backports
- Fix assignees for stable patches
2021-12-15 18:33:09 -05:00

74 lines
2.2 KiB
YAML

pull_request_rules:
- name: automatic merge for main when CI passes and approved
conditions:
- "#approved-reviews-by>=1"
# Unfortunately, we cannot just say "all CI must pass".
# This is not a bot limitation, but a limitation in Github itself.
- or:
- and:
- check-success=tests / all-tests
- check-success=tests / docker
- and:
- check-success=tests / all-tests (pull_request)
- check-success=tests / docker (pull_request)
- check-success=SonarCloud Code Analysis
- base=master
actions:
queue:
name: default
method: squash
rebase_fallback: none
update_method: rebase
- name: automatic merge for stable backports when CI passes
conditions:
- or:
- and:
- check-success=tests / all-tests
- check-success=tests / docker
- and:
- check-success=tests / all-tests (pull_request)
- check-success=tests / docker (pull_request)
- check-success=SonarCloud Code Analysis
- base=stable
- or:
- "#approved-reviews-by>=1"
- author=mergify[bot]
actions:
queue:
name: stable
method: rebase
rebase_fallback: none
update_method: rebase
- name: copy patches to stable branch
conditions:
- base=master
- label!=unstable
actions:
backport:
branches:
- stable
assignees:
- master-of-zen
- redzic
- shssoichiro
queue_rules:
- name: stable
conditions:
- or:
- and:
- check-success=tests / all-tests
- check-success=tests / docker
- and:
- check-success=tests / all-tests (pull_request)
- check-success=tests / docker (pull_request)
- name: default
conditions:
- or:
- and:
- check-success=tests / all-tests
- check-success=tests / docker
- and:
- check-success=tests / all-tests (pull_request)
- check-success=tests / docker (pull_request)