Skip to content

Commit 4dacbe1

Browse files
Add auto-labeler workflow for pull requests
1 parent e624f5e commit 4dacbe1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/autolabel.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Auto-Labeler
2+
3+
on:
4+
pull_request_target:
5+
types: [ opened, synchronize, reopened ]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
name: Label PR by changed files
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/labeler@v5
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
# Path to the labeler configuration file (relative to repo root)
20+
configuration-path: .github/labeler.yml
21+
# Apply all matching labels (not just the first match)
22+
sync-labels: true

0 commit comments

Comments
 (0)