Skip to content

Commit ccdae5a

Browse files
authored
👷 Add GitHub Action label-checker (#68)
1 parent 6692360 commit ccdae5a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/labeler.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
name: Pull Request Labeler
1+
name: Pull Request Labeler and Checker
22
on:
33
pull_request_target:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
# For label-checker
9+
- labeled
10+
- unlabeled
411

512
jobs:
613
labeler:
@@ -10,3 +17,12 @@ jobs:
1017
runs-on: ubuntu-latest
1118
steps:
1219
- uses: actions/labeler@v5
20+
# Run this after labeler applied labels
21+
check-labels:
22+
name: Check labels
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: docker://agilepathway/pull-request-label-checker:latest
26+
with:
27+
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
28+
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)