Skip to content

Commit

Permalink
Add a workflow to check required labels
Browse files Browse the repository at this point in the history
To facilitate generating release note and backporting, all PRs should be
labelled properly with the following up actions. However, PRs are merged
without any label in some cases. The workflow checks there is at least
one action label is added before a PR can be merged to remind that. If
there is no required action, "action/none" should be labelled
explicitly.

Signed-off-by: Quan Tian <qtian@vmware.com>
  • Loading branch information
tnqn committed May 24, 2023
1 parent 743f558 commit a6b762b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Pull Request Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v4
with:
mode: minimum
count: 1
labels: "action/backport, action/release-note, action/none"
add_comment: true

0 comments on commit a6b762b

Please sign in to comment.