Skip to content

Commit d7df5a5

Browse files
committed
chore(ci): upgrade labeler action to v6 and add base-branch labels
Updated GitHub labeler from v4 to v6 to support the new configuration format and base-branch matching capabilities. Migrated all existing file-based label rules to the v6 format using changed-files syntax. Added core2 and core3 labels that automatically apply based on PR target branch (main and vincent-and-the-doctor respectively) using the new base-branch matching feature.
1 parent 1f5b905 commit d7df5a5

File tree

2 files changed

+60
-21
lines changed

2 files changed

+60
-21
lines changed

.github/labeler.yml

Lines changed: 59 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,100 @@
11
# See https://github.com/actions/labeler
22

33
astro:
4-
- packages/astro/**
4+
- changed-files:
5+
- any-glob-to-any-file: packages/astro/**
56

67
backend:
7-
- packages/backend/**
8+
- changed-files:
9+
- any-glob-to-any-file: packages/backend/**
810

911
chrome-extension:
10-
- packages/chrome-extension/**
12+
- changed-files:
13+
- any-glob-to-any-file: packages/chrome-extension/**
1114

1215
clerk-js:
13-
- packages/clerk-js/**
16+
- changed-files:
17+
- any-glob-to-any-file: packages/clerk-js/**
18+
19+
elements:
20+
- changed-files:
21+
- any-glob-to-any-file: packages/elements/**
1422

1523
expo:
16-
- packages/expo/**
24+
- changed-files:
25+
- any-glob-to-any-file: packages/expo/**
1726

1827
express:
19-
- packages/express/**
28+
- changed-files:
29+
- any-glob-to-any-file: packages/express/**
2030

2131
fastify:
22-
- packages/fastify/**
32+
- changed-files:
33+
- any-glob-to-any-file: packages/fastify/**
2334

2435
localizations:
25-
- packages/localizations/**
36+
- changed-files:
37+
- any-glob-to-any-file: packages/localizations/**
2638

2739
nextjs:
28-
- packages/nextjs/**
40+
- changed-files:
41+
- any-glob-to-any-file: packages/nextjs/**
2942

3043
nuxt:
31-
- packages/nuxt/**
44+
- changed-files:
45+
- any-glob-to-any-file: packages/nuxt/**
3246

3347
react:
34-
- packages/react/**
48+
- changed-files:
49+
- any-glob-to-any-file: packages/react/**
3550

3651
react-router:
37-
- packages/react-router/**
52+
- changed-files:
53+
- any-glob-to-any-file: packages/react-router/**
54+
55+
remix:
56+
- changed-files:
57+
- any-glob-to-any-file: packages/remix/**
3858

3959
tanstack:
40-
- packages/tanstack-react-start/**
60+
- changed-files:
61+
- any-glob-to-any-file: packages/tanstack-react-start/**
4162

4263
testing:
43-
- packages/testing/**
64+
- changed-files:
65+
- any-glob-to-any-file: packages/testing/**
4466

4567
themes:
46-
- packages/themes/**
68+
- changed-files:
69+
- any-glob-to-any-file: packages/themes/**
70+
71+
types:
72+
- changed-files:
73+
- any-glob-to-any-file: packages/types/**
4774

4875
vue:
49-
- packages/vue/**
76+
- changed-files:
77+
- any-glob-to-any-file: packages/vue/**
5078

5179
playground:
52-
- playground/**
80+
- changed-files:
81+
- any-glob-to-any-file: playground/**
5382

5483
actions:
55-
- .github/workflows/**
84+
- changed-files:
85+
- any-glob-to-any-file: .github/workflows/**
5686

5787
integration:
58-
- integration/**
88+
- changed-files:
89+
- any-glob-to-any-file: integration/**
5990

6091
agent-toolkit:
61-
- packages/agent-toolkit/**
92+
- changed-files:
93+
- any-glob-to-any-file: packages/agent-toolkit/**
94+
95+
# Base branch labels
96+
core2:
97+
- base-branch: '^main$'
98+
99+
core3:
100+
- base-branch: '^vincent-and-the-doctor$'

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
show-progress: false
19-
- uses: actions/labeler@v4
19+
- uses: actions/labeler@v6
2020
with:
2121
repo-token: ${{ secrets.CLERK_COOKIE_PAT }}

0 commit comments

Comments
 (0)