From cd6df96245c121030d348bcfbebe72c53ed5998f Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Mon, 10 Jul 2023 18:28:09 -0400 Subject: [PATCH] Mergify: add no-rebase rule If a pull request gets the "merge+no rebase" label, it' will be merged directly to master without a rebase/squash or queue. This can be useful in cases when contributors don't allow updating their branches. --- .github/mergify.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 7969fe95c25..175077138e8 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -12,6 +12,7 @@ pull_request_rules: - or: - label=merge me - label=squash+merge me + - label=merge+no rebase - '#approved-reviews-by>=2' # rebase+merge strategy @@ -44,6 +45,17 @@ pull_request_rules: - label=merge delay passed - '#approved-reviews-by>=2' + # merge+no rebase strategy + - actions: + merge: + method: merge + name: Merge "merge+no rebase" pull requests directly (without a queue) + conditions: + - base=master + - label=merge+no rebase + - label=merge delay passed + - '#approved-reviews-by>=2' + # rebase+merge strategy for backports: require 1 approver instead of 2 - actions: queue: