소스 검색

Allow multiline prompts for github agent (#1225)

Andrew Joslin 1 년 전
부모
커밋
638ec7bc50
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sdks/github/src/index.ts

+ 2 - 2
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()