Skip to content

Commit cba5e54

Browse files
authored
Add GitHub Actions workflow for auto labeling PRs
1 parent f51ccd6 commit cba5e54

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

auto-label.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1+
name: Auto Label
12

3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
name: Apply labels
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Label PR by changed files
17+
uses: actions/labeler@v5
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
configuration-path: labeler.yml
21+
sync-labels: true

0 commit comments

Comments
 (0)