Skip to content

Commit 809db38

Browse files
committed
add auto labeler and associated config
1 parent 11e39f6 commit 809db38

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed

.github/config/labeler.yaml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Labeler configuration
2+
3+
## core packages
4+
core:
5+
- changed-files:
6+
- any-glob-to-any-file: 'packages/core/*'
7+
cli:
8+
- changed-files:
9+
- any-glob-to-any-file: 'packages/core/src/cli/*'
10+
config-engine:
11+
- changed-files:
12+
- any-glob-to-any-file: 'packages/core/src/config-engine/*'
13+
configraph:
14+
- changed-files:
15+
- any-glob-to-any-file: 'packages/config-graph/*'
16+
## docs/readmes
17+
documentation:
18+
- changed-files:
19+
- any-glob-to-any-file: '**/README.md'
20+
docs-site:
21+
- changed-files:
22+
- any-glob-to-any-file: 'packages/docs-site/*'
23+
## integrations
24+
integrations/astro:
25+
- changed-files:
26+
- any-glob-to-any-file: 'packages/integrations/astro/*'
27+
integrations/nextjs:
28+
- changed-files:
29+
- any-glob-to-any-file: 'packages/integrations/nextjs/*'
30+
integrations/vite:
31+
- changed-files:
32+
- any-glob-to-any-file: 'packages/integrations/vite/*'
33+
## plugins
34+
plugins/1password:
35+
- changed-files:
36+
- any-glob-to-any-file: 'packages/plugins/1password/*'
37+
plugins/encrypted-vault:
38+
- changed-files:
39+
- any-glob-to-any-file: 'packages/plugins/encrypted-vault/*'
40+
plugins/infisical:
41+
- changed-files:
42+
- any-glob-to-any-file: 'packages/plugins/infisical/*'
43+
plugins/bitwarden:
44+
- changed-files:
45+
- any-glob-to-any-file: 'packages/plugins/bitwarden/*'
46+
## integrations
47+
integrations/astro:
48+
- changed-files:
49+
- any-glob-to-any-file: 'packages/integrations/astro/*'
50+
integrations/fastify:
51+
- changed-files:
52+
- any-glob-to-any-file: 'packages/integrations/fastify/*'
53+
integrations/nextjs:
54+
- changed-files:
55+
- any-glob-to-any-file: 'packages/integrations/nextjs/*'
56+
integrations/remix:
57+
- changed-files:
58+
- any-glob-to-any-file: 'packages/integrations/remix/*'
59+
integrations/vite:
60+
- changed-files:
61+
- any-glob-to-any-file: 'packages/integrations/vite/*'
62+
## platforms
63+
platforms/netlify:
64+
- changed-files:
65+
- any-glob-to-any-file: 'packages/platforms/netlify/*'
66+
platforms/vercel:
67+
- changed-files:
68+
- any-glob-to-any-file: 'packages/platforms/vercel/*'
69+
platforms/cloudflare:
70+
- changed-files:
71+
- any-glob-to-any-file: 'packages/platforms/cloudflare/*'
72+
## example-repo
73+
example-repo:
74+
- changed-files:
75+
- any-glob-to-any-file: 'example-repo/*'

.github/workflows/pr-labeler.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
issues: write
17+
contents: read
1718
pull-requests: write
1819
steps:
19-
- name: Label PR
20+
- name: Label PR based on maintainer status
2021
uses: actions/github-script@v5
2122
with:
2223
script: |
@@ -29,3 +30,7 @@ jobs:
2930
MAINTAINERS.includes(context.payload.pull_request.user.login) ? 'maintainer' : 'community'
3031
]
3132
});
33+
- name: Label PR based on changed files
34+
uses: actions/labeler@v5
35+
with:
36+
configuration-path: .github/config/labeler.yaml

0 commit comments

Comments
 (0)