From 66a0b0953e6b120a68f0a76f246d0aec057d8224 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 27 Jul 2020 08:43:02 +0530 Subject: [PATCH] ci: update mergify rules for v3.0 updated mergify rules for auto backport and merging for release-v3.0 branch. Signed-off-by: Madhu Rajanna --- .mergify.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index ebf8eb066..c890960ad 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -123,6 +123,30 @@ pull_request_rules: strict: smart dismiss_reviews: {} delete_head_branch: {} + - name: backport patches to release-v3.0 branch + conditions: + - base=master + - label=backport-to-release-v3.0 + actions: + backport: + branches: + - release-v3.0 + # automerge backports if CI successfully ran + - name: automerge backport release-v3.0 + conditions: + - author=mergify[bot] + - base=release-v3.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: {} - name: remove outdated approvals on ci/centos conditions: - base=ci/centos