This commit is contained in:
2026-05-15 11:23:37 +02:00
parent 09c9527e93
commit a15aac7f38
5 changed files with 46 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import { tool } from "@opencode-ai/plugin"
import { $ } from "bun"
export default tool({
description: "Create a new issue in the GitHub repository using tea CLI",
@@ -7,7 +8,7 @@ export default tool({
description: tool.schema.string().optional().describe("Issue description (supports markdown)"),
},
async execute(args) {
const result = await Bun.$`tea issues create -t ${args.title} -d ${args.description}`.text()
const result = await $`tea issues create -t ${args.title} -d ${args.description}`.text()
return result.trim()
},
})