Skip to content

Commit b79be3f

Browse files
authored
Add labeler workflow (#91)
1 parent ca4b63a commit b79be3f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
enhancement:
2+
- head-branch: ['^feature/', '^feat/', '^enhancement/', '^enh/']
3+
4+
bug:
5+
- head-branch: ['^fix/', '^bug/']
6+
7+
chore:
8+
- head-branch: ['^chore/']
9+
10+
tests:
11+
- head-branch: ['^tests/', '^test/']
12+
- changed-files: ['__tests__/**/*']
13+
14+
documentation:
15+
- head-branch: ['^docs/', '^doc/']
16+
- changed-files: '**/*.md'
17+
18+
dependencies:
19+
- head-branch: ['^deps/', '^dep/', '^dependabot/']
20+
- changed-files: ['package.json', 'package-lock.json']

.github/workflows/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
triage:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: joshdales/labeler@68a25980166b8ff8eb977d9a31cab5bd883793e1 # if https://github.com/actions/labeler/pull/203 is merged, use the official action actions/labeler
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)