From ea3d9e941f7ab7bae3b273cbeca8b2cf796e8324 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 27 May 2020 11:43:08 +0200 Subject: [PATCH] ci: automatically merge PRs in ci/centos Merge PRs for the ci/centos branch when they have sufficient approvals and the tests have passed. Using the same rules as the master branch. Signed-off-by: Niels de Vos --- .mergify.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index 63b883dfc..ab625fcad 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -123,3 +123,43 @@ pull_request_rules: strict: smart dismiss_reviews: {} delete_head_branch: {} + - name: remove outdated approvals on ci/centos + conditions: + - base=ci/centos + actions: + dismiss_reviews: + approved: true + changes_requested: false + - name: automatic merge on ci/centos + conditions: + - label!=DNM + - base=ci/centos + - "#approved-reviews-by>=2" + - "#changes-requested-reviews-by=0" + - "status-success=ci/centos/job-validation" + - "status-success=DCO" + - "status-success=commitlint" + actions: + merge: + method: rebase + rebase_fallback: merge + strict: smart + dismiss_reviews: {} + delete_head_branch: {} + - name: automatic merge PR having ready-to-merge label on ci/centos + conditions: + - label!=DNM + - label=ready-to-merge + - base=ci/centos + - "#approved-reviews-by>=1" + - "#changes-requested-reviews-by=0" + - "status-success=ci/centos/job-validation" + - "status-success=DCO" + - "status-success=commitlint" + actions: + merge: + method: rebase + rebase_fallback: merge + strict: smart + dismiss_reviews: {} + delete_head_branch: {}