From 7514d0b608eeebf5e5fa81ad0ff1961643120ad0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 8 May 2024 10:22:40 -0700 Subject: 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> --- .github/workflows/ensure-pr-label.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ensure-pr-label.yml (limited to '.github') 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 -- cgit v1.2.3