From b209154dc174fccc62d146c52ee937c8a894bfdc Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Tue, 26 Aug 2025 03:38:02 +0000 Subject: [PATCH] chore: create workflow to check the do-not-merge label --- .../workflows/check_do_not_merge_label.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/check_do_not_merge_label.yml diff --git a/.github/workflows/check_do_not_merge_label.yml b/.github/workflows/check_do_not_merge_label.yml new file mode 100644 index 0000000000..97b91b156a --- /dev/null +++ b/.github/workflows/check_do_not_merge_label.yml @@ -0,0 +1,20 @@ +name: "Check 'do not merge' label" + +on: + pull_request_target: + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled + +jobs: + block-do-not-merge: + runs-on: ubuntu-latest + steps: + - name: Check for "do not merge" label + if: "contains(github.event.pull_request.labels.*.name, 'do not merge')" + run: | + echo "This PR has the 'do not merge' label and cannot be merged." + exit 1