github: support schedule events (#5810)
publish-github-action / publish (push) Has been cancelled
Update Nix Hashes / update (push) Has been cancelled

This commit is contained in:
Matt Silverlock
2025-12-21 08:46:54 -06:00
committed by GitHub
parent ae00001aa0
commit 10375263ef
3 changed files with 151 additions and 41 deletions
+4 -1
View File
@@ -574,10 +574,13 @@ async function subscribeSessionEvents() {
}
async function summarize(response: string) {
const payload = useContext().payload as IssueCommentEvent
try {
return await chat(`Summarize the following in less than 40 characters:\n\n${response}`)
} catch (e) {
if (isScheduleEvent()) {
return "Scheduled task changes"
}
const payload = useContext().payload as IssueCommentEvent
return `Fix issue: ${payload.issue.title}`
}
}