Skip to content

Commit 0ae437a

Browse files
Copilotnaheel0
andcommitted
Fix Auto Label PRs: update labeler.yml to actions/labeler@v5 schema
Co-authored-by: naheel0 <191262736+naheel0@users.noreply.github.com>
1 parent 8518f9a commit 0ae437a

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto-label rules based on files changed in a PR
2+
3+
first-contribution:
4+
- changed-files:
5+
- any-glob-to-any-file:
6+
- "Contributors.md"
7+
8+
documentation:
9+
- changed-files:
10+
- any-glob-to-any-file:
11+
- "*.md"
12+
- "docs/**"
13+
14+
github-config:
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- ".github/**"

.github/workflows/labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Auto Label PRs
2+
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+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Auto Label
16+
uses: actions/labeler@v5
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
configuration-path: .github/labeler.yml
20+
sync-labels: false
21+
dot: true

0 commit comments

Comments
 (0)