Skip to content

Commit 4ee933d

Browse files
chore: add issue labeler (vercel#43599)
Follow-up of vercel#43228. This PR adds a new [GitHub Action](https://github.com/github/issue-labeler) that matches the issue's body for the [dropdown list items](https://github.com/vercel/next.js/blame/6cacd5a7c46fb1bb86c536031140da92863ce451/.github/ISSUE_TEMPLATE/1.bug_report.yml#L26-L48) and adds the relevant labels to the issue for triaging automatically.
1 parent fbc98ab commit 4ee933d

File tree

6 files changed

+85
-2
lines changed

6 files changed

+85
-2
lines changed

.github/ISSUE_TEMPLATE/1.bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
required: true
2424
- type: dropdown
2525
attributes:
26-
label: Which area of Next.js is affected? (leave empty if unsure)
26+
label: Which area(s) of Next.js are affected? (leave empty if unsure)
2727
multiple: true
2828
options:
2929
- 'App directory (appDir: true)'
@@ -32,6 +32,7 @@ body:
3232
- 'Dynamic imports (next/dynamic)'
3333
- 'ESLint (eslint-config-next)'
3434
- 'Font optimization (@next/font)'
35+
- 'Head component/file (next/head / head.js)'
3536
- 'Internationalzation (i18n)'
3637
- 'Image optmization (next/image, next/legacy/image)'
3738
- 'Jest (next/jest)'
@@ -45,7 +46,6 @@ body:
4546
- 'SWC transpilation'
4647
- 'Turbopack (--turbo)'
4748
- 'TypeScript'
48-
- 'Other'
4949
- type: input
5050
attributes:
5151
label: Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

.github/issue-labeler.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# https://github.com/github/issue-labeler#basic-examples
2+
3+
# Should match the list "Which area(s) of Next.js are affected?" in:
4+
# https://github.com/vercel/next.js/blob/canary/.github/ISSUE_TEMPLATE/1.bug_report.yml
5+
'area: app':
6+
- 'App directory (appDir: true)'
7+
'area: create-next-app':
8+
- 'CLI (create-next-app)'
9+
'area: data fetching':
10+
- 'Data fetching (gS(S)P, getInitialProps)'
11+
'area: next/dynamic':
12+
- 'Dynamic imports (next/dynamic)'
13+
'area: ESLint':
14+
- 'ESLint (eslint-config-next)'
15+
'area: Font Optimization':
16+
- 'Font optimization (@next/font)'
17+
'area: next/head / head.js':
18+
- 'Head component/file (next/head / head.js)'
19+
'area: I18n':
20+
- 'Internationalzation (i18n)'
21+
'area: next/image':
22+
- 'Image optmization (next/image, next/legacy/image)'
23+
'area: Jest':
24+
- 'Jest (next/jest)'
25+
'area: Edge':
26+
- 'Middleware / Edge (API routes, runtime)'
27+
'area: package manager':
28+
- 'Package manager (npm, pnpm, Yarn)'
29+
'area: Routing':
30+
- 'Routing (next/router, next/navigation, next/link)'
31+
'area: next/script':
32+
- 'Script optimizatzion (next/script)'
33+
'area: standalone mode':
34+
- 'Standalone mode (output: "standalone")'
35+
'area: export':
36+
- 'Static HTML Export (next export)'
37+
'area: SWC Minify':
38+
- 'SWC minifier (swcMinify: true)'
39+
'area: SWC transforms':
40+
- 'SWC transpilation'
41+
'area: Turbopack':
42+
- 'Turbopack (--turbo)'
43+
'area: TypeScript':
44+
- 'TypeScript'
45+
# Less used/old/redundant labels
46+
# area: AMP
47+
# area: API routes
48+
# area: Application Code
49+
# area: Codemods
50+
# area: Compiler Performance
51+
# area: Compiler
52+
# area: Concurrent Features
53+
# area: Debugger
54+
# area: Developer Experience
55+
# area: Ecosystem
56+
# area: experimental
57+
# area: Middleware
58+
# area: Reliability
59+
# area: Repository Maintenance
60+
# area: Server Components
61+
# area: Static Generation
62+
# area: styled-jsx
63+
# area: Tracing
64+
# area: URL Imports

.github/workflows/issue_labeler.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# https://github.com/github/issue-labeler#create-workflow
2+
3+
name: Label issues
4+
5+
on:
6+
issues:
7+
types: [opened]
8+
9+
jobs:
10+
triage:
11+
if: '${{ github.event.label.name == "template: bug" }}'
12+
name: Triage
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: github/[email protected]
16+
with:
17+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
18+
configuration-path: '.github/issue-labeler.yml'
19+
enable-versioned-regex: 0
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)