Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add issue labeler #43599

Merged
merged 3 commits into from Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1.bug_report.yml
Expand Up @@ -32,6 +32,7 @@ body:
- 'Dynamic imports (next/dynamic)'
- 'ESLint (eslint-config-next)'
- 'Font optimization (@next/font)'
- 'Head component/file (next/head / head.js)'
- 'Internationalzation (i18n)'
- 'Image optmization (next/image, next/legacy/image)'
- 'Jest (next/jest)'
Expand All @@ -45,7 +46,6 @@ body:
- 'SWC transpilation'
- 'Turbopack (--turbo)'
- 'TypeScript'
- 'Other'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dropdown is optional, besides there is a default "None" added by GitHub, so this is not necessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird. I wouldn't expect that GitHub adds none when its multiple: true.

- type: input
attributes:
label: Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
Expand Down
64 changes: 64 additions & 0 deletions .github/issue-labeler.yml
@@ -0,0 +1,64 @@
# https://github.com/github/issue-labeler#basic-examples

# Should match the list "Which area of Next.js is affected?" in:
# https://github.com/vercel/next.js/blob/canary/.github/ISSUE_TEMPLATE/1.bug_report.yml
'area: app':
- 'App directory (appDir: true)'
'area: create-next-app':
- 'CLI (create-next-app)'
'area: data fetching':
- 'Data fetching (gS(S)P, getInitialProps)'
'area: next/dynamic':
- 'Dynamic imports (next/dynamic)'
'area: ESLint':
- 'ESLint (eslint-config-next)'
'area: Font Optimization':
- 'Font optimization (@next/font)'
'area: next/head / head.js':
- 'Head component/file (next/head / head.js)'
'area: I18n':
- 'Internationalzation (i18n)'
'area: next/image':
- 'Image optmization (next/image, next/legacy/image)'
'area: Jest':
- 'Jest (next/jest)'
'area: Edge':
- 'Middleware / Edge (API routes, runtime)'
'area: package manager':
- 'Package manager (npm, pnpm, Yarn)'
'area: Routing':
- 'Routing (next/router, next/navigation, next/link)'
'area: next/script':
- 'Script optimizatzion (next/script)'
'area: standalone mode':
- 'Standalone mode (output: "standalone")'
'area: export':
- 'Static HTML Export (next export)'
'area: SWC Minify':
- 'SWC minifier (swcMinify: true)'
'area: SWC transforms':
- 'SWC transpilation'
'area: Turbopack':
- 'Turbopack (--turbo)'
'area: TypeScript':
- 'TypeScript'
# Less used/old/redundant labels
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these have 0 items currently, are superseded by other labels, or are irrelevant for auto-labeling. We can delete some of these labels, and move legit issues under the new label (eg.: Server Components -> app dir)

# area: AMP
# area: API routes
# area: Application Code
# area: Codemods
# area: Compiler Performance
# area: Compiler
# area: Concurrent Features
# area: Debugger
# area: Developer Experience
# area: Ecosystem
# area: experimental
# area: Middleware
# area: Reliability
# area: Repository Maintenance
# area: Server Components
# area: Static Generation
# area: styled-jsx
# area: Tracing
# area: URL Imports
18 changes: 18 additions & 0 deletions .github/workflows/issue_labeler.yml
@@ -0,0 +1,18 @@
# https://github.com/github/issue-labeler#create-workflow

name: Label issues

on:
issues:
types: [opened]

jobs:
triage:
name: Triage
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
configuration-path: '.github/issue-labeler.yml'
enable-versioned-regex: 0
File renamed without changes.
File renamed without changes.