Compare commits
2 Commits
renovate/c
...
28d7622956
| Author | SHA1 | Date | |
|---|---|---|---|
|
28d7622956
|
|||
|
e692018422
|
14
.opencode/tools/tea-comment.ts
Normal file
14
.opencode/tools/tea-comment.ts
Normal file
@@ -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()
|
||||||
|
},
|
||||||
|
})
|
||||||
13
.opencode/tools/tea-issue-get.ts
Normal file
13
.opencode/tools/tea-issue-get.ts
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { tool } from "@opencode-ai/plugin"
|
||||||
|
import { $ } from "bun"
|
||||||
|
|
||||||
|
export default tool({
|
||||||
|
description: "Get a specific issue with all details and comments using tea CLI",
|
||||||
|
args: {
|
||||||
|
issueNumber: tool.schema.number().describe("Issue number/index"),
|
||||||
|
},
|
||||||
|
async execute(args) {
|
||||||
|
const result = await $`tea issues ${args.issueNumber} --comments --output json`.text()
|
||||||
|
return result.trim()
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"config:recommended"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user