Skip to content

Commit

Permalink
Merge branch 'canary' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
nauvalazhar authored Aug 21, 2024
2 parents 141672c + 0ac10d7 commit 1cbc1cf
Show file tree
Hide file tree
Showing 168 changed files with 2,330 additions and 1,893 deletions.
2 changes: 1 addition & 1 deletion .github/actions/next-repo-actions/dist/issues/index.mjs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion .github/actions/next-repo-actions/src/popular-issues.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,18 @@ async function run() {

if (data.items.length > 0) {
data.items.forEach(async (item) => {
const labelType = item.labels.some(
(label) => label.name === 'Turbopack'
)
? 'turbopack'
: 'next'
const syncLabel = `linear: ${labelType}`

await octoClient.rest.issues.addLabels({
owner,
repo,
issue_number: item.number,
labels: ['linear: next'],
labels: [syncLabel],
})
})

Expand Down
10 changes: 6 additions & 4 deletions .github/actions/next-repo-actions/src/triage-issues-with-ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ async function main() {
}),
},
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.` +
'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.',
prompt:
`Here are the triage guidelines: ${guidelines}` +
`Here is the latest version of Next.js: ${latestVersion}` +
`Here is the latest canary version of Next.js: ${latestCanaryVersion}`,
prompt: `${JSON.stringify(issue)}\nDetermine the severity of the above GitHub issue. If the severity is severe, report it to Slack.`,
`Here is the latest canary version of Next.js: ${latestCanaryVersion}` +
`Here is the GitHub issue: ${JSON.stringify(issue)}`,
})

// the ai determined that the issue was severe enough to report on slack
Expand All @@ -85,6 +85,8 @@ async function main() {
icon_emoji: ':github:',
username: 'GitHub Notifier',
})

info('Posted to Slack!')
}

// the ai will also provide a reason why the issue was not severe enough to report on slack
Expand Down
Loading

0 comments on commit 1cbc1cf

Please sign in to comment.