diff options
Diffstat (limited to 'github/index.ts')
| -rw-r--r-- | github/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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}` } } |
