mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
93ecc92905
commit
e0640cbac5
1 changed files with 9 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import { Opencode } from "../src/opencode"
|
|||
import { Context } from "../src/context"
|
||||
|
||||
try {
|
||||
Context.assertEventName("pull_request_opened", "pull_request_synchronize")
|
||||
Context.assertEventName("pull_request_opened", "pull_request_synchronize", "pull_request_reopened")
|
||||
await check()
|
||||
process.exit(0)
|
||||
} catch (e: any) {
|
||||
|
|
@ -43,7 +43,14 @@ Please check:
|
|||
${process.env.PROMPT}
|
||||
</check>
|
||||
|
||||
If the check failed, write the reason to ${filename}. Keep the reason short and concise, only one sentence.
|
||||
If the check failed, write the reason to ${filename} in this format:
|
||||
\`\`\`
|
||||
{
|
||||
"reason": "string"
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
Keep the reason short and concise, only one sentence.
|
||||
|
||||
If the check passed, do not create any file.
|
||||
`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue