From a3d2980311c18a5d7287639b37232a32b7aeb104 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 15 Apr 2020 08:01:15 +0530 Subject: [PATCH] Update Mergify for v2.1.0 backports Updated Mergify rules for backporting PR's to release-v2.1 branch and to auto merge the PR if author is mergify bot Signed-off-by: Madhu Rajanna --- .mergify.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index e28c55bfa..5a943128c 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -69,3 +69,27 @@ pull_request_rules: strict: smart dismiss_reviews: {} delete_head_branch: {} + - name: backport patches to release-v2.1 branch + conditions: + - base=master + - label=backport-to-release-v2.1 + actions: + backport: + branches: + - release-v2.1 + # automerge backports if CI successfully ran + - name: automerge backport release-v2.1 + conditions: + - author=mergify[bot] + - base=release-v2.1 + - label!=DNM + - "#changes-requested-reviews-by=0" + - "#approved-reviews-by>=1" + - "status-success=continuous-integration/travis-ci/pr" + actions: + merge: + method: rebase + rebase_fallback: merge + strict: smart + dismiss_reviews: {} + delete_head_branch: {}