summaryrefslogtreecommitdiffhomepage
path: root/github
diff options
context:
space:
mode:
authorMatt Silverlock <[email protected]>2025-12-21 09:46:54 -0500
committerGitHub <[email protected]>2025-12-21 08:46:54 -0600
commit10375263ef03740d530cbc626ee775914fbffacc (patch)
tree6f0c99a39b2d3961e6b224064f458339fb44bbf2 /github
parentae00001aa010de5e05f79b5653f4473d7350feba (diff)
downloadopencode-10375263ef03740d530cbc626ee775914fbffacc.tar.gz
opencode-10375263ef03740d530cbc626ee775914fbffacc.zip
github: support schedule events (#5810)
Diffstat (limited to 'github')
-rw-r--r--github/index.ts5
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}`
}
}