From ce9e54e5bd7ef65d74de38d996256e090d5e9a78 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 28 Jul 2021 09:05:35 +0200 Subject: [PATCH] ci: add Mergify backport rules for release-v3.4 The new `backport-to-release-v3.4` label can be added to PRs and Mergify will create a backport once the PR for the devel branch has been merged. Signed-off-by: Niels de Vos --- .mergify.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index 9acb8a39a..eea868afc 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -271,6 +271,43 @@ pull_request_rules: merge: {} dismiss_reviews: {} delete_head_branch: {} + - name: backport patches to release-v3.4 branch + conditions: + - base=devel + - label=backport-to-release-v3.4 + actions: + backport: + branches: + - release-v3.4 + # automerge backports if CI successfully ran + - name: automerge backport release-v3.4 + conditions: + - author=mergify[bot] + - base=release-v3.4 + - label!=DNM + - "#approved-reviews-by>=1" + - "status-success=codespell" + - "status-success=multi-arch-build" + - "status-success=go-test" + - "status-success=golangci-lint" + - "status-success=gosec" + - "status-success=commitlint" + - "status-success=mod-check" + - "status-success=lint-extras" + - "#changes-requested-reviews-by=0" + - "status-success=ci/centos/mini-e2e-helm/k8s-1.19" + - "status-success=ci/centos/mini-e2e-helm/k8s-1.20" + - "status-success=ci/centos/mini-e2e-helm/k8s-1.21" + - "status-success=ci/centos/mini-e2e/k8s-1.19" + - "status-success=ci/centos/mini-e2e/k8s-1.20" + - "status-success=ci/centos/mini-e2e/k8s-1.21" + - "status-success=ci/centos/upgrade-tests-cephfs" + - "status-success=ci/centos/upgrade-tests-rbd" + - "status-success=DCO" + actions: + merge: {} + dismiss_reviews: {} + delete_head_branch: {} - name: remove outdated approvals on ci/centos conditions: - base=ci/centos