summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Joslin <[email protected]>2025-07-22 18:30:51 -0400
committerGitHub <[email protected]>2025-07-22 18:30:51 -0400
commit638ec7bc5023bbef5998403aec28c465fc3d67f3 (patch)
tree1260daf75febfaca1cafc1d6c46ab28eef4a4247
parent38ae7d60aac11661330ad60056de08c30d8e153c (diff)
downloadopencode-638ec7bc5023bbef5998403aec28c465fc3d67f3.tar.gz
opencode-638ec7bc5023bbef5998403aec28c465fc3d67f3.zip
Allow multiline prompts for github agent (#1225)
-rw-r--r--sdks/github/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdks/github/src/index.ts b/sdks/github/src/index.ts
index fd6e08aa0..51ee4f704 100644
--- a/sdks/github/src/index.ts
+++ b/sdks/github/src/index.ts
@@ -43,8 +43,8 @@ let state:
async function run() {
try {
- const match = body.match(/^hey\s*opencode,?\s*(.*)$/)
- if (!match?.[1]) throw new Error("Command must start with `hey opencode`")
+ const match = body.match(/^hey\s*opencode,/)
+ if (!match?.[1]) throw new Error("Command must start with `hey opencode,`")
const userPrompt = match[1]
const oidcToken = await generateGitHubToken()