From b07c5dab379abf363e736732e687251307458438 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 15 Oct 2018 16:00:34 +0200 Subject: [PATCH] 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. --- .mergify.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.mergify.yml b/.mergify.yml index 806ba933..6e7238c0 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -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: {}