mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
Allow multiline prompts for github agent (#1225)
This commit is contained in:
@@ -43,8 +43,8 @@ let state:
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
const match = body.match(/^hey\s*opencode,?\s*(.*)$/)
|
const match = body.match(/^hey\s*opencode,/)
|
||||||
if (!match?.[1]) throw new Error("Command must start with `hey opencode`")
|
if (!match?.[1]) throw new Error("Command must start with `hey opencode,`")
|
||||||
const userPrompt = match[1]
|
const userPrompt = match[1]
|
||||||
|
|
||||||
const oidcToken = await generateGitHubToken()
|
const oidcToken = await generateGitHubToken()
|
||||||
|
|||||||
Reference in New Issue
Block a user