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

refactor(github): minor refactor to triage with ai #69155

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

13 changes: 3 additions & 10 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 @@ -49,13 +49,6 @@ async function main() {
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:
Expand Down
Loading