(response: string)
| 574 | } |
| 575 | |
| 576 | async function summarize(response: string) { |
| 577 | try { |
| 578 | return await chat(`Summarize the following in less than 40 characters:\n\n${response}`) |
| 579 | } catch { |
| 580 | if (isScheduleEvent()) { |
| 581 | return "Scheduled task changes" |
| 582 | } |
| 583 | const payload = useContext().payload as IssueCommentEvent |
| 584 | return `Fix issue: ${payload.issue.title}` |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | async function resolveAgent(): Promise<string | undefined> { |
| 589 | const envAgent = useEnvAgent() |
no test coverage detected