Skip to content

Commit c654150

Browse files
authored
Merge pull request #70 from PMDevSolutions/7-add-automatic-pr-labeling-workflow
feat: add automatic PR labeling workflow
2 parents 035655c + 82d7252 commit c654150

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"area: scripts":
2+
- changed-files:
3+
- any-glob-to-any-file: "scripts/**"
4+
5+
"area: agents":
6+
- changed-files:
7+
- any-glob-to-any-file: ".claude/agents/**"
8+
9+
"area: skills":
10+
- changed-files:
11+
- any-glob-to-any-file: ".claude/skills/**"
12+
13+
"area: ci-cd":
14+
- changed-files:
15+
- any-glob-to-any-file: ".github/workflows/**"
16+
17+
"area: templates":
18+
- changed-files:
19+
- any-glob-to-any-file: "templates/**"
20+
21+
"area: docs":
22+
- changed-files:
23+
- any-glob-to-any-file: "docs/**"
24+
25+
"area: pipeline":
26+
- changed-files:
27+
- any-glob-to-any-file: ".claude/pipeline.config.json"

.github/workflows/labeler.yml

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

0 commit comments

Comments
 (0)