mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
4c87c5712b
update rules to auto merge in master branch
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 3784268dde
)
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
pull_request_rules:
|
|
- name: remove outdated approvals
|
|
conditions:
|
|
- base=master
|
|
actions:
|
|
dismiss_reviews:
|
|
approved: true
|
|
changes_requested: false
|
|
- name: automatic merge
|
|
conditions:
|
|
- label!=DNM
|
|
- base=master
|
|
- "#approved-reviews-by>=2"
|
|
- "#changes-requested-reviews-by=0"
|
|
- "status-success=continuous-integration/travis-ci/pr"
|
|
actions:
|
|
merge:
|
|
method: rebase
|
|
rebase_fallback: merge
|
|
strict: smart
|
|
dismiss_reviews: {}
|
|
delete_head_branch: {}
|
|
- name: backport patches to release branch
|
|
conditions:
|
|
- base=master
|
|
- label=backport-to-release-v1.2.0
|
|
actions:
|
|
backport:
|
|
branches:
|
|
- release-v1.2.0
|
|
# automerge backports if CI successfully ran
|
|
- name: automerge backport release-v1.2.0
|
|
conditions:
|
|
- author=mergify[bot]
|
|
- base=release-v1.2.0
|
|
- label!=DNM
|
|
- "#changes-requested-reviews-by=0"
|
|
- "#approved-reviews-by>=1"
|
|
- "status-success=continuous-integration/travis-ci/pr"
|
|
actions:
|
|
merge:
|
|
method: rebase
|
|
rebase_fallback: merge
|
|
strict: smart
|
|
dismiss_reviews: {}
|
|
delete_head_branch: {}
|