Add tea_issue_create tool with Bun.$ and description support
This commit is contained in:
@@ -9,8 +9,7 @@ export default tool({
|
|||||||
milestone: tool.schema.string().optional().describe("Milestone name"),
|
milestone: tool.schema.string().optional().describe("Milestone name"),
|
||||||
},
|
},
|
||||||
async execute(args) {
|
async execute(args) {
|
||||||
const cmd = `tea issues create -t "${args.title}" -d "${args.description}"`
|
const result = await Bun.$`tea issues create -t ${args.title} -d ${args.description}`.text()
|
||||||
const result = await Bun.$`${cmd}`.text()
|
|
||||||
return result.trim()
|
return result.trim()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user