Skip to content

Commit

Permalink
Merge branch 'canary' into 04-27-fix_broken_routes_when_the_page_exte…
Browse files Browse the repository at this point in the history
…nsion_contains_single_extension
  • Loading branch information
AbhiShake1 committed May 1, 2024
2 parents 7a7a25a + d62b68f commit 325b401
Show file tree
Hide file tree
Showing 100 changed files with 1,441 additions and 1,331 deletions.
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE/1.bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bug Report
description: Create a bug report for the Next.js core
description: Create a bug report for Next.js.
labels: ['bug']
body:
- type: markdown
Expand Down Expand Up @@ -72,6 +72,7 @@ body:
options:
- 'Not sure'
- 'create-next-app'
- 'Developer Experience'
- 'Documentation'
- 'Lazy Loading'
- 'Font (next/font)'
Expand All @@ -82,6 +83,8 @@ body:
- 'Markdown (MDX)'
- 'Metadata'
- 'Middleware'
- 'Module Resolution'
- 'Navigation'
- 'Output (export/standalone)'
- 'Pages Router'
- 'Parallel & Intercepting Routes'
Expand All @@ -94,6 +97,7 @@ body:
- 'TypeScript'
- 'SWC'
- 'Upstream'
- 'Webpack'

validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2.example_bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bug Report for Examples
description: Create a bug report for one of the Next.js examples
description: Create a bug report for Next.js examples.
labels: ['examples']
body:
- type: markdown
Expand Down
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/4.docs_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Docs Report'
description: Create a report for Next.js documentation.
title: 'Docs: '
labels:
- 'Documentation'
body:
- type: markdown
attributes:
value: Before opening a new docs issue, is this something you can help us with? Your contributions are welcomed and appreciated. See our [Docs Contribution Guide](https://nextjs.org/docs/community/contribution-guide) to learn how to edit the Next.js docs.
- type: markdown
attributes:
value: Thank you for helping us update our docs!
- type: textarea
attributes:
label: What is the update you wish to see?
description: 'Example: I would like to fix an example using the `<Link>` component. Or, the `<Link>` component docs are missing information.'
validations:
required: true
- type: textarea
attributes:
label: Is there any context that might help us understand?
description: A clear description of any added context that might help us understand.
validations:
required: true
- type: input
attributes:
label: Does the docs page already exist? Please link to it.
description: 'Example: https://nextjs.org/docs/app/api-reference/components/link'
validations:
required: false
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/4.docs_request.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/vercel/next.js/discussions
about: Ask questions and discuss with other community members
about: Ask questions and discuss with other community members.
- name: Feature request
url: https://github.com/vercel/next.js/discussions/new?category=ideas
about: Feature requests should be opened as discussions
about: Feature or docs requests should be opened as discussions.
- name: Next.js Learn course
url: https://github.com/vercel/next-learn/issues/new
about: Next.js Lean course-related issues should be reported in their respective repository
about: Next.js Learn course-related issues should be reported in their respective repository.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/actions/next-repo-info/dist/issues/index.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/actions/next-repo-info/dist/prs/index.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/actions/next-repo-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"build": "pnpm build-issues && pnpm build-prs && pnpm build-feature-requests",
"build-issues": "ncc build src/popular-issues.mjs -m -o dist/issues --license licenses.txt",
"build-prs": "ncc build src/popular-prs.mjs -m -o dist/prs --license licenses.txt",
"build-feature-requests": "ncc build src/feature-requests.mjs -m -o dist/feature-requests --license licenses.txt"
"build-feature-requests": "ncc build src/popular-feature-requests.mjs -m -o dist/feature-requests --license licenses.txt"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "6.0.0",
"@slack/web-api": "^7.0.1"
"@slack/web-api": "^7.0.4"
},
"devDependencies": {
"@vercel/ncc": "^0.38.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ import { formattedDate, ninetyDaysAgo } from '../lib/util.mjs'
* @property {Node[]} nodes
*
* @typedef Node
* @property {string} createdAt
* @property {number} number
* @property {string} title
* @property {string} url
* @property {number} upvoteCount
* @property {string} createdAt
* @property {string} url
*
* @typedef {{ search: Search }} GraphQLResponse
*
* @typedef Item
* @property {string} title
* @property {number} number
* @property {string} html_url
* @property {string} created_at
* @property {number} reactions
* @property {string} html_url
* @property {number} number
* @property {string} title
* @property {number} upvoteCount
*/

/** @param {Item[]} items */
Expand All @@ -33,7 +33,7 @@ function generateBlocks(items) {
type: 'section',
text: {
type: 'mrkdwn',
text: '*A list of the top 15 feature requests sorted by reactions over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/feature-requests.mjs|action> will run every Monday at 1PM UTC (9AM EST)._',
text: '*A list of the top 15 feature requests sorted by upvotes over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/feature-requests.mjs|action> will run every Monday at 10AM UTC (6AM EST)._',
},
},
{
Expand All @@ -44,8 +44,8 @@ function generateBlocks(items) {
let text = ''

items.forEach((item, i) => {
text += `${i + 1}. [<${item.html_url}|#${item.number}>, :+1: ${
item.reactions['+1']
text += `${i + 1}. [<${item.html_url}|#${item.number}>, ${
item.upvoteCount
}, ${formattedDate(item.created_at)}]: ${item.title}\n`
})

Expand Down Expand Up @@ -94,7 +94,7 @@ async function run() {
number: node.number,
html_url: node.url,
created_at: formattedDate(node.createdAt),
reactions: node.upvoteCount,
upvoteCount: node.upvoteCount,
}))

await slackClient.chat.postMessage({
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/next-repo-info/src/popular-issues.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function generateBlocks(issues) {
type: 'section',
text: {
type: 'mrkdwn',
text: '*A list of the top 15 issues sorted by most :+1: reactions over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/popular-issues.mjs|action> will run every Monday at 1PM UTC (9AM EST)._',
text: '*A list of the top 15 issues sorted by most :+1: reactions over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/popular-issues.mjs|action> will run every Monday at 10AM UTC (6AM EST)._',
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/next-repo-info/src/popular-prs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function generateBlocks(prs) {
type: 'section',
text: {
type: 'mrkdwn',
text: `*A list of the top ${count} PRs sorted by most :+1: reactions (> 1) over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/popular-prs.mjs|action> will run every Monday at 1PM UTC (9AM EST)._`,
text: `*A list of the top ${count} PRs sorted by most :+1: reactions (> 1) over the last 90 days.*\n_Note: This :github2: <https://github.com/vercel/next.js/blob/canary/.github/workflows/popular.yml|workflow> → <https://github.com/vercel/next.js/blob/canary/.github/actions/next-repo-info/src/popular-prs.mjs|action> will run every Monday at 10AM UTC (6AM EST)._`,
},
})

Expand Down
21 changes: 11 additions & 10 deletions .github/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/popular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Notify about the top 15 issues/PRs/feature requests (most reacted) in the

on:
schedule:
- cron: '0 13 * * 1' # Every Monday at 1PM UTC (9AM EST)
- cron: '0 10 * * 1' # Every Monday at 10AM UTC (6AM EST)
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 325b401

Please sign in to comment.