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: 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: {}