From 6ab720fcc827a74d7c5f8be08c58a018c00db5a3 Mon Sep 17 00:00:00 2001 From: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com> Date: Mon, 17 Feb 2025 15:09:17 -0500 Subject: [PATCH] Update do-not-merge-check.yml --- .github/workflows/do-not-merge-check.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/do-not-merge-check.yml b/.github/workflows/do-not-merge-check.yml index 65484e9..f3bdc67 100644 --- a/.github/workflows/do-not-merge-check.yml +++ b/.github/workflows/do-not-merge-check.yml @@ -2,9 +2,13 @@ name: Check Do Not Merge on: pull_request: - branches: [ $default-branch ] + branches: + - main types: - opened + - reopened + - ready_for_review + - review_requested - labeled - unlabeled @@ -15,7 +19,8 @@ jobs: if: contains(github.event.pull_request.labels.*.name, 'do not merge') runs-on: ubuntu-latest steps: - - name: Fail if do not merge label is applied + - name: Fail if PR is labeled do not merge run: | - echo "Cannot merge with `do not merge` label applied." + echo "This PR is labeled do not merge. Remove the label to pass this check." exit 1 +