Migrate Mergify configuration to v2
This just convert the file to the new configuration format. The action "delete_head_branch" is added to clean up branches after they are merged.
This commit is contained in:
parent
0475ff12c9
commit
b07c5dab37
25
.mergify.yml
25
.mergify.yml
|
@ -1,11 +1,14 @@
|
||||||
rules:
|
pull_request_rules:
|
||||||
default:
|
- name: automatic merge
|
||||||
protection:
|
conditions:
|
||||||
required_status_checks:
|
- label!=no-mergify
|
||||||
contexts:
|
- '#approved-reviews-by>=2'
|
||||||
- continuous-integration/travis-ci
|
- status-success=continuous-integration/travis-ci
|
||||||
- Codacy/PR Quality Review
|
- status-success=Codacy/PR Quality Review
|
||||||
- codecov/patch
|
- status-success=codecov/patch
|
||||||
- coverage/coveralls
|
- status-success=coverage/coveralls
|
||||||
required_pull_request_reviews:
|
actions:
|
||||||
required_approving_review_count: 2
|
merge:
|
||||||
|
method: merge
|
||||||
|
delete_head_branch: {}
|
||||||
|
dismiss_reviews: {}
|
||||||
|
|
Loading…
Reference in New Issue