From 28d76229563e9b552847e1a21a65f408044df971 Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Fri, 15 May 2026 11:41:27 +0200 Subject: [PATCH] Add tea-comment tool for adding comments to issues --- .opencode/tools/tea-comment.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .opencode/tools/tea-comment.ts diff --git a/.opencode/tools/tea-comment.ts b/.opencode/tools/tea-comment.ts new file mode 100644 index 0000000..c1e697c --- /dev/null +++ b/.opencode/tools/tea-comment.ts @@ -0,0 +1,14 @@ +import { tool } from "@opencode-ai/plugin" +import { $ } from "bun" + +export default tool({ + description: "Add a comment to a specific issue using tea CLI", + args: { + issueNumber: tool.schema.number().describe("Issue number/index"), + body: tool.schema.string().describe("Comment body"), + }, + async execute(args) { + const result = await $`tea comment ${args.issueNumber} ${args.body}`.text() + return result.trim() + }, +}) \ No newline at end of file