From f9c01ea3b366b8a7f65feed0867fee80238f9bee Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Mon, 5 Aug 2024 22:05:59 -0700 Subject: [PATCH] Replace Label Checking Action I had sourced the original one from the ember-data repo, but I like this one better and it's better supported. --- .github/workflows/required-labels.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/required-labels.yml b/.github/workflows/required-labels.yml index 18b59197e5..e49e0da6ba 100644 --- a/.github/workflows/required-labels.yml +++ b/.github/workflows/required-labels.yml @@ -7,14 +7,19 @@ jobs: enforce--ready-label: runs-on: ubuntu-latest steps: - - uses: yogevbd/enforce-label-action@2 + - uses: mheap/github-action-required-labels@v5 with: - REQUIRED_LABELS_ANY: "ready to merge" - REQUIRED_LABELS_ANY_DESCRIPTION: "Add the 'ready to merge' label to merge this PR" + mode: exactly + count: 1 + labels: | + ready to merge + message: "Add the 'ready to merge' label to merge this PR" prevent-donotmerge-label: runs-on: ubuntu-latest steps: - - uses: yogevbd/enforce-label-action@2 + - uses: mheap/github-action-required-labels@v5 with: - BANNED_LABELS: "DO NOT MERGE" - BANNED_LABELS_DESCRIPTION: "Remove the 'DO NOT MERGE' label to merge this PR" + mode: exactly + count: 0 + labels: "DO NOT MERGE" + message: "DO NOT MERGE label is not allowed on this PR"