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:
Julien Danjou 2018-10-15 16:00:34 +02:00
parent 0475ff12c9
commit b07c5dab37
1 changed files with 14 additions and 11 deletions

View File

@ -1,11 +1,14 @@
rules:
default:
protection:
required_status_checks:
contexts:
- continuous-integration/travis-ci
- Codacy/PR Quality Review
- codecov/patch
- coverage/coveralls
required_pull_request_reviews:
required_approving_review_count: 2
pull_request_rules:
- name: automatic merge
conditions:
- label!=no-mergify
- '#approved-reviews-by>=2'
- status-success=continuous-integration/travis-ci
- status-success=Codacy/PR Quality Review
- status-success=codecov/patch
- status-success=coverage/coveralls
actions:
merge:
method: merge
delete_head_branch: {}
dismiss_reviews: {}