From 10375263ef03740d530cbc626ee775914fbffacc Mon Sep 17 00:00:00 2001 From: Matt Silverlock Date: Sun, 21 Dec 2025 09:46:54 -0500 Subject: github: support schedule events (#5810) --- github/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'github') diff --git a/github/index.ts b/github/index.ts index 7f6018232..2dcf6e754 100644 --- a/github/index.ts +++ b/github/index.ts @@ -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}` } } -- cgit v1.2.3