summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-05-08 10:22:40 -0700
committerGitHub <noreply@github.com>2024-05-08 10:22:40 -0700
commit7514d0b608eeebf5e5fa81ad0ff1961643120ad0 (patch)
tree9db74f49b055af42908b864b8e31dd243c191cae /.github/workflows
parent93e5b718e8497a0a70eb14dffe120c9ca6d99fd8 (diff)
Add github action to ensure PRs are labeled. (#4130)
* Add github action to ensure PRs are labeled. * Update. * Fix. * Fix * Fix * more Fix * more fix. * try. * fix * another try. --------- Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ensure-pr-label.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/ensure-pr-label.yml b/.github/workflows/ensure-pr-label.yml
new file mode 100644
index 000000000..59e94e0ff
--- /dev/null
+++ b/.github/workflows/ensure-pr-label.yml
@@ -0,0 +1,18 @@
+name: Verify PR Labels
+on:
+ pull_request:
+ types: [opened, labeled, unlabeled, synchronize]
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: mheap/github-action-required-labels@v5
+ with:
+ mode: exactly
+ count: 1
+ labels: |
+ pr: non-breaking
+ pr: breaking change \ No newline at end of file