Skip to content

Commit 5ee7dfa

Browse files
feat(ci): add automatic PR labeling by package/app
Add actions/labeler workflow to automatically label PRs based on which packages and apps are modified, making it easy to filter PRs by area.
1 parent d5a19bf commit 5ee7dfa

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"pkg:apollo-core":
2+
- changed-files:
3+
- any-glob-to-any-file: "packages/apollo-core/**"
4+
5+
"pkg:apollo-react":
6+
- changed-files:
7+
- any-glob-to-any-file: "packages/apollo-react/**"
8+
9+
"pkg:apollo-wind":
10+
- changed-files:
11+
- any-glob-to-any-file: "packages/apollo-wind/**"
12+
13+
"pkg:ap-chat":
14+
- changed-files:
15+
- any-glob-to-any-file: "web-packages/ap-chat/**"
16+
17+
"app:apollo-vertex":
18+
- changed-files:
19+
- any-glob-to-any-file: "apps/apollo-vertex/**"
20+
21+
"app:storybook":
22+
- changed-files:
23+
- any-glob-to-any-file: "apps/storybook/**"
24+
25+
"app:landing":
26+
- changed-files:
27+
- any-glob-to-any-file: "apps/landing/**"
28+
29+
"app:react-playground":
30+
- changed-files:
31+
- any-glob-to-any-file: "apps/react-playground/**"
32+
33+
"ci":
34+
- changed-files:
35+
- any-glob-to-any-file: ".github/**"

.github/workflows/pr-labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PR Labeler
2+
3+
# zizmor: ignore[dangerous-triggers]
4+
# No code checkout — labeler only reads changed files via the GitHub API
5+
on:
6+
pull_request_target:
7+
types: [opened, synchronize, reopened]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
label:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
18+
with:
19+
sync-labels: true

0 commit comments

Comments
 (0)