Skip to content

Commit 14fc004

Browse files
feat: Update PR action to automatically add labels based on the PR title (#1637)
1 parent 6379775 commit 14fc004

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/pr-labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
enhancement: ['feature:*', 'feat:*']
2+
bug: ['fix:*']
3+
breaking-change: ['*!*']

.github/workflows/pull-request-lint.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,15 @@ jobs:
5757
with:
5858
header: pr-title-lint-error
5959
delete: true
60-
60+
pr-labeler:
61+
name: Add Label
62+
needs: [ validate ]
63+
runs-on: ubuntu-latest
64+
permissions:
65+
contents: read
66+
pull-requests: write
67+
steps:
68+
- uses: TimonVS/pr-labeler-action@v4
69+
with:
70+
repo-token: ${{ secrets.GITHUB_TOKEN }}
71+
configuration-path: .github/pr-labeler.yml

0 commit comments

Comments
 (0)