Add bot to enforce hold PRs aren't merged (#456)

* Add bot to enforce hold PRs aren't merged

* Use commit hash rather than tag
This commit is contained in:
Matt Gibson 2022-01-31 13:44:29 -05:00 committed by GitHub
parent 5731e1e316
commit 68548d8db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
.github/workflows/enforce-labels.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Enforce PR labels
on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]
jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/enforce-label-action@8d1e1709b1011e6d90400a0e6cf7c0b77aa5efeb
with:
BANNED_LABELS: "hold"
BANNED_LABELS_DESCRIPTION: "PRs on hold cannot be merged"