summaryrefslogtreecommitdiffhomepage
path: root/.opencode/tool
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-16 10:09:51 -0600
committerAiden Cline <[email protected]>2025-12-16 10:09:51 -0600
commit59329a414dfe8268138cdc1e859f3818cb328e41 (patch)
tree649312236358d9474f235b49305a8283002ba288 /.opencode/tool
parent452c991f58f0ae901594b1f8c8a87ad995c97a45 (diff)
downloadopencode-59329a414dfe8268138cdc1e859f3818cb328e41.tar.gz
opencode-59329a414dfe8268138cdc1e859f3818cb328e41.zip
ci: tweak triage
Diffstat (limited to '.opencode/tool')
-rw-r--r--.opencode/tool/github-triage.ts23
-rw-r--r--.opencode/tool/github-triage.txt8
2 files changed, 25 insertions, 6 deletions
diff --git a/.opencode/tool/github-triage.ts b/.opencode/tool/github-triage.ts
index f0437e623..30905a938 100644
--- a/.opencode/tool/github-triage.ts
+++ b/.opencode/tool/github-triage.ts
@@ -1,3 +1,4 @@
+/// <reference path="../env.d.ts" />
import { Octokit } from "@octokit/rest"
import { tool } from "@opencode-ai/plugin"
import DESCRIPTION from "./github-triage.txt"
@@ -16,9 +17,9 @@ export default tool({
.describe("The username of the assignee")
.default("rekram1-node"),
labels: tool.schema
- .array(tool.schema.enum(["nix", "opentui", "perf", "web", "zen", "docs"]))
+ .array(tool.schema.enum(["nix", "opentui", "perf", "desktop", "zen", "docs"]))
.describe("The labels(s) to add to the issue")
- .optional(),
+ .default([]),
},
async execute(args) {
const issue = getIssueNumber()
@@ -28,6 +29,18 @@ export default tool({
const results: string[] = []
+ if (args.assignee === "adamdotdevin" && !args.labels.includes("desktop")) {
+ throw new Error("Only desktop issues should be assigned to adamdotdevin")
+ }
+
+ if (args.assignee === "fwang" && !args.labels.includes("zen")) {
+ throw new Error("Only zen issues should be assigned to fwang")
+ }
+
+ if (args.assignee === "kommander" && !args.labels.includes("opentui")) {
+ throw new Error("Only opentui issues should be assigned to kommander")
+ }
+
await octokit.rest.issues.addAssignees({
owner,
repo,
@@ -36,12 +49,14 @@ export default tool({
})
results.push(`Assigned @${args.assignee} to issue #${issue}`)
- if (args.labels && args.labels.length > 0) {
+ const labels: string[] = args.labels.map((label) => (label === "desktop" ? "web" : label))
+
+ if (labels.length > 0) {
await octokit.rest.issues.addLabels({
owner,
repo,
issue_number: issue,
- labels: args.labels,
+ labels,
})
results.push(`Added labels: ${args.labels.join(", ")}`)
}
diff --git a/.opencode/tool/github-triage.txt b/.opencode/tool/github-triage.txt
index 14844a19f..0aa7670e6 100644
--- a/.opencode/tool/github-triage.txt
+++ b/.opencode/tool/github-triage.txt
@@ -50,9 +50,13 @@ Then assign the issue to Him.
### rekram1-node
+ALL BUGS SHOULD BE assigned to rekram1-node unless they have the `opentui` label.
+
Assign Aiden to an issue as a catch all, if you can't assign anyone else. Most of the time this will be bugs/polish things.
If no one else makes sense to assign, assign rekram1-node to it.
+Always assign to aiden if the issue mentions "acp", "zed", or model performance issues
+
## Breakdown of Labels:
### nix
@@ -67,9 +71,9 @@ Anything relating to the TUI itself should have an opentui label
Anything related to slow performance, high ram, high cpu usage, or any other performance related issue should have a perf label
-### web
+### desktop
-Anything related to `opencode web` or the desktop app should have a web label. Never add this label for anything terminal/tui related
+Anything related to `opencode web` command or the desktop app should have a desktop label. Never add this label for anything terminal/tui related
### zen