mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Allow multiline prompts for github agent (#1225)
This commit is contained in:
parent
a30f613e09
commit
ff2af54b0f
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue