From 8a33d56dfad812c8952d703fb8ab1cac736a7b74 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Mon, 21 Jun 2021 10:39:10 +0200 Subject: [PATCH] Mergify: Add rules for landing PRs --- .mergify.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index adcad0387..2940fe175 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -85,3 +85,27 @@ pull_request_rules: strict: smart delete_head_branch: force: false + - name: Needs landing - Rebase + conditions: + - check-success=pr-complete + - label=pr:needs-landing + - "#approved-reviews-by>=1" + - -draft + - label!=pr:work-in-progress + - label!=pr:do-not-land + actions: + merge: + method: rebase + strict: smart + - name: Needs landing - Squash + conditions: + - check-success=pr-complete + - label=pr:needs-landing-squashed + - "#approved-reviews-by>=1" + - -draft + - label!=pr:work-in-progress + - label!=pr:do-not-land + actions: + merge: + method: squash + strict: smart