Skip to content

Commit 062bf8d

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 062bf8d

2 files changed

Lines changed: 52 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: PR Labeler
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+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
16+
with:
17+
sync-labels: true

0 commit comments

Comments
 (0)