Skip to content

Commit

Permalink
Merge branch 'canary' into feat-headless-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Arindam200 authored Aug 29, 2024
2 parents ef2c545 + 9720d0a commit cc203c2
Show file tree
Hide file tree
Showing 786 changed files with 32,128 additions and 39,790 deletions.
1 change: 0 additions & 1 deletion .github/.react-version

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


debug
MIT
(The MIT License)

Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
Copyright (c) 2018-2021 Josh Junon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the 'Software'), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



delayed-stream
MIT
Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
Expand Down Expand Up @@ -1110,6 +1134,31 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


ms
MIT
The MIT License (MIT)

Copyright (c) 2016 Zeit, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


nanoid
MIT
The MIT License (MIT)
Expand Down
16 changes: 8 additions & 8 deletions .github/actions/next-repo-actions/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ const performedViaGitHubAppSchema = z

const reactionSchema = z
.object({
'+1': z.number(),
'-1': z.number(),
confused: z.number(),
eyes: z.number(),
heart: z.number(),
hooray: z.number(),
laugh: z.number(),
rocket: z.number(),
'+1': z.number().optional(),
'-1': z.number().optional(),
confused: z.number().optional(),
eyes: z.number().optional(),
heart: z.number().optional(),
hooray: z.number().optional(),
laugh: z.number().optional(),
rocket: z.number().optional(),
total_count: z.number(),
url: z.string(),
})
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/next-repo-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/github": "6.0.0",
"@ai-sdk/openai": "^0.0.45",
"@slack/web-api": "^7.3.2",
"ai": "^3.3.6",
"@ai-sdk/openai": "^0.0.54",
"@slack/web-api": "^7.3.4",
"ai": "^3.3.19",
"slack-block-builder": "^2.8.0",
"zod": "^3.23.8"
},
Expand Down
17 changes: 5 additions & 12 deletions .github/actions/next-repo-actions/src/triage-issues-with-ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ async function main() {
const channel = '#next-info'

const issue = context.payload.issue
const html_url = issue.html_url
const number = issue.number
const title = issue.title

let latestVersion: string
let latestCanaryVersion: string
let html_url: string
let number: number
let title: string

try {
latestVersion = await getLatestVersion()
Expand All @@ -44,22 +44,15 @@ async function main() {

const result = await generateText({
model: openai(model),
maxAutomaticRoundtrips: 1,
maxToolRoundtrips: 1,
tools: {
report_to_slack: tool({
description: 'Report to Slack.',
parameters: issueSchema,
execute: async ({ issue }) => {
html_url = issue.html_url
number = issue.number
title = issue.title

return { html_url, number, title }
},
}),
},
system:
'Your job is to determine the severity of a GitHub issue using the triage guidelines and the latest versions of Next.js. Succinctly explain why you chose the severity, without paraphrasing the triage guidelines. Report this explanation to slack only if the severity is considered severe.',
'Your job is to determine the severity of a GitHub issue using the triage guidelines and the latest versions of Next.js. Succinctly explain why you chose the severity, without paraphrasing the triage guidelines. Report to Slack the explanation only if the severity is considered severe.',
prompt:
`Here are the triage guidelines: ${guidelines}` +
`Here is the latest version of Next.js: ${latestVersion}` +
Expand Down
3 changes: 1 addition & 2 deletions .github/labeler.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"packages/next-swc/**",
"packages/next/**",
"packages/react-refresh-utils/**"
],
"type: react-sync": [".github/.react-version"]
]
}
}
Loading

0 comments on commit cc203c2

Please sign in to comment.