Skip to content

Commit 85af359

Browse files
author
Drew Yang
committed
feat: ✨ PR auto labeler
1 parent 35f1a42 commit 85af359

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/labeler.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# https://github.com/actions/labeler
2+
bug:
3+
- head-branch: ['fix', 'FIX', 'bug', 'BUG']
4+
enhancement:
5+
- head-branch: ['feat', 'FEAT', 'enhance', 'improve', 'IMPR', 'DJEP']
6+
documentation:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- docs/**
10+
- images/**
11+
- README.md
12+
- CHANGELOG.md
13+
- CONTRIBUTING.md
14+
enhancement:
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- '**'
18+
- '!docs/**'
19+
- '!images/**'
20+
- '!README.md'
21+
- '!CHANGELOG.md'
22+
- '!CONTRIBUTING.md'

.github/workflows/labeler.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://github.com/actions/labeler
2+
name: "Pull Request Labeler"
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
labeler:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v5
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
configuration-path: .github/labeler.yaml
17+
sync-labels: true
18+
dot: true

0 commit comments

Comments
 (0)