From 50658d8796cf17599f4c6d5ded4f006f6662e1d8 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 26 Oct 2020 09:47:49 -0700 Subject: [PATCH] ci: allow for disabling PullApprove on a single PR via adding a label (#39430) Alowing for disabling PullApprove on a single PR via adding a label allows for an escape hatch if PullApprove is not acting as expected, or for cases where reviews can be stepped over in obvious situations, such as a revert. PR Close #39430 --- .pullapprove.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pullapprove.yml b/.pullapprove.yml index add9ab1eba..88901e3752 100644 --- a/.pullapprove.yml +++ b/.pullapprove.yml @@ -103,6 +103,8 @@ meta: github_api_version: "shadow-cat-preview" pullapprove_conditions: + # For PRs which are still being worked on, either still in draft mode or indicated through WIP in + # title or label, PullApprove stays in a pending state until its ready for review. - condition: "'WIP' not in title" unmet_status: pending explanation: "Waiting to send reviews as PR is WIP" @@ -112,6 +114,10 @@ pullapprove_conditions: - condition: "not draft" unmet_status: pending explanation: "Waiting to send reviews as PR is in draft" + # Disable PullApprove on specific PRs by adding the `PullApprove: disable` label + - condition: "'PullApprove: disable' not in labels" + unmet_status: success + explanation: "PullApprove skipped because of 'PullApprove: disable' label" groups: