From e496d7e4e78101a3386e707b6c994a0918038df6 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Fri, 10 Dec 2021 21:18:53 +0100 Subject: [PATCH] Add mergify configuration --- .mergify.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..06d5db2 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,39 @@ +--- +pull_request_rules: + - name: automatic merge + conditions: + - and: &base_checks + - base=master + - -label~=^acceptance-tests-needed|not-ready + # wait explicitly for one of the final checks to show up to be on the + # safe side even in case of checks not reporting back at all + - "check-success~=🐪 Perl" + # we don't need to spell out all tests but we can check a minimum + # amount + - "#check-success=>6" + - "#check-failure=0" + - "#check-pending=0" + - linear-history + - and: + - "#approved-reviews-by>=2" + - "#changes-requested-reviews-by=0" + # https://doc.mergify.io/examples.html#require-all-requested-reviews-to-be-approved + - "#review-requested=0" + actions: &merge + merge: + method: merge + - name: automatic merge on special label + conditions: + - and: *base_checks + - and: + # mergify config checks needs at least two rules in "and" so we repeat + # one from the base checks + - base=master + - "label=merge-fast" + actions: *merge + - name: ask to resolve conflict + conditions: + - conflict + actions: + comment: + message: This pull request is now in conflicts. Could you fix it? 🙏