Skip to content

Commit

Permalink
Add labeller action
Browse files Browse the repository at this point in the history
Automatically label PRs based on the first part of the branch name:

fix/ -> bug
feat/ -> enhancement
maint/ -> maintenance
doc/ -> documentation
depr/ -> deprecation
test/ -> test
  • Loading branch information
pvandyken committed May 9, 2024
1 parent d7287f2 commit dd80dad
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
bug:
- head-branch: ['^fix/']

enhancement:
- head-branch: ['^feat/']

maintenance:
- head-branch: ['^maint/']

documentation:
- head-branch: ['^doc/']

deprecation:
- head-branch: ['^depr/']

test:
- head-branch: ['^test/']
13 changes: 13 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Label pull requests

on:
- pull_request_target

jobs:
labeller:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit dd80dad

Please sign in to comment.