From 50a84fb9308cfb05f3d029f4d73474daa1d3e3dc Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 20 Jan 2020 16:35:47 +0530 Subject: [PATCH] Update mergify to release-v2.0 Signed-off-by: Madhu Rajanna --- .mergify.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.mergify.yml b/.mergify.yml index 071634989..e28c55bfa 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -21,7 +21,7 @@ pull_request_rules: strict: smart dismiss_reviews: {} delete_head_branch: {} - - name: backport patches to release branch + - name: backport patches to release v1.2.0 branch conditions: - base=master - label=backport-to-release-v1.2.0 @@ -45,3 +45,27 @@ pull_request_rules: strict: smart dismiss_reviews: {} delete_head_branch: {} + - name: backport patches to release-v2.0 branch + conditions: + - base=master + - label=backport-to-release-v2.0 + actions: + backport: + branches: + - release-v2.0 + # automerge backports if CI successfully ran + - name: automerge backport release-v2.0 + conditions: + - author=mergify[bot] + - base=release-v2.0 + - 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: {}