GeezerVison is showing github.com — ci: tweak triage · avillagran/opencode@59329a4
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +59-1Lines changed: 59 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | --- | 2 | 2 | mode: primary | 3 | 3 | hidden: true | 4 | | -model: opencode/gpt-5-nano | | 4 | +model: opencode/claude-haiku-4-5 | 5 | 5 | tools: | 6 | 6 | "*": false | 7 | 7 | "github-triage": true | @@ -10,3 +10,61 @@ tools: | 10 | 10 | You are a triage agent responsible for triaging github issues. | 11 | 11 |
| 12 | 12 | Use your github-triage tool to triage issues. | | 13 | + | | 14 | +## Labels | | 15 | + | | 16 | +#### perf | | 17 | + | | 18 | +Performance-related issues: | | 19 | + | | 20 | +- Slow performance | | 21 | +- High RAM usage | | 22 | +- High CPU usage | | 23 | + | | 24 | +**Only** add if it's likely a RAM or CPU issue. **Do not** add for LLM slowness. | | 25 | + | | 26 | +#### desktop | | 27 | + | | 28 | +Desktop app issues: | | 29 | + | | 30 | +- `opencode web` command | | 31 | +- The desktop app itself | | 32 | + | | 33 | +**Only** add if it's specifically about the Desktop application or `opencode web` view. **Do not** add for terminal, TUI, or general opencode issues. | | 34 | + | | 35 | +#### nix | | 36 | + | | 37 | +**Only** add if the issue explicitly mentions nix. | | 38 | + | | 39 | +#### zen | | 40 | + | | 41 | +**Only** add if the issue mentions "zen" or "opencode zen". Zen is our gateway for coding models. **Do not** add for other gateways or inference providers. | | 42 | + | | 43 | +#### docs | | 44 | + | | 45 | +Add if the issue requests better documentation or docs updates. | | 46 | + | | 47 | +#### opentui | | 48 | + | | 49 | +TUI issues potentially caused by our underlying TUI library: | | 50 | + | | 51 | +- Keybindings not working | | 52 | +- Scroll speed issues (too fast/slow/laggy) | | 53 | +- Screen flickering | | 54 | +- Crashes with opentui in the log | | 55 | + | | 56 | +**Do not** add for general TUI bugs. | | 57 | + | | 58 | + | | 59 | +When assigning to people here are the following rules: | | 60 | + | | 61 | +adamdotdev: | | 62 | +ONLY assign adam if the issue will have the "desktop" label. | | 63 | + | | 64 | +fwang: | | 65 | +ONLY assign fwang if the issue will have the "zen" label. | | 66 | + | | 67 | +jayair: | | 68 | +ONLY assign jayair if the issue will have the "docs" label. | | 69 | + | | 70 | +In all other cases use best judgment. Avoid assigning to kommander needlessly, when in doubt assign to rekram1-node. |
Collapse file Copy file name to clipboardExpand all lines: .opencode/bun.lock +3-3Lines changed: 3 additions & 3 deletions Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | 2 | "dependencies": { | 3 | 3 | "@octokit/rest": "^22.0.1", | 4 | | - "@opencode-ai/plugin": "0.0.0-dev-202512160508" | | 4 | + "@opencode-ai/plugin": "0.0.0-dev-202512161535" | 5 | 5 | } | 6 | 6 | } |
Collapse file Copy file name to clipboardExpand all lines: .opencode/tool/github-triage.ts +19-4Lines changed: 19 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +/// <reference path="../env.d.ts" /> | 1 | 2 | import { Octokit } from "@octokit/rest" | 2 | 3 | import { tool } from "@opencode-ai/plugin" | 3 | 4 | import DESCRIPTION from "./github-triage.txt" | @@ -16,9 +17,9 @@ export default tool({ | 16 | 17 | .describe("The username of the assignee") | 17 | 18 | .default("rekram1-node"), | 18 | 19 | labels: tool.schema | 19 | | - .array(tool.schema.enum(["nix", "opentui", "perf", "web", "zen", "docs"])) | | 20 | + .array(tool.schema.enum(["nix", "opentui", "perf", "desktop", "zen", "docs"])) | 20 | 21 | .describe("The labels(s) to add to the issue") | 21 | | - .optional(), | | 22 | + .default([]), | 22 | 23 | }, | 23 | 24 | async execute(args) { | 24 | 25 | const issue = getIssueNumber() | @@ -28,6 +29,18 @@ export default tool({ | 28 | 29 |
| 29 | 30 | const results: string[] = [] | 30 | 31 |
| | 32 | + if (args.assignee === "adamdotdevin" && !args.labels.includes("desktop")) { | | 33 | + throw new Error("Only desktop issues should be assigned to adamdotdevin") | | 34 | + } | | 35 | + | | 36 | + if (args.assignee === "fwang" && !args.labels.includes("zen")) { | | 37 | + throw new Error("Only zen issues should be assigned to fwang") | | 38 | + } | | 39 | + | | 40 | + if (args.assignee === "kommander" && !args.labels.includes("opentui")) { | | 41 | + throw new Error("Only opentui issues should be assigned to kommander") | | 42 | + } | | 43 | + | 31 | 44 | await octokit.rest.issues.addAssignees({ | 32 | 45 | owner, | 33 | 46 | repo, | @@ -36,12 +49,14 @@ export default tool({ | 36 | 49 | }) | 37 | 50 | results.push(`Assigned @${args.assignee} to issue #${issue}`) | 38 | 51 |
| 39 | | - if (args.labels && args.labels.length > 0) { | | 52 | + const labels: string[] = args.labels.map((label) => (label === "desktop" ? "web" : label)) | | 53 | + | | 54 | + if (labels.length > 0) { | 40 | 55 | await octokit.rest.issues.addLabels({ | 41 | 56 | owner, | 42 | 57 | repo, | 43 | 58 | issue_number: issue, | 44 | | - labels: args.labels, | | 59 | + labels, | 45 | 60 | }) | 46 | 61 | results.push(`Added labels: ${args.labels.join(", ")}`) | 47 | 62 | } | |
Collapse file Copy file name to clipboardExpand all lines: .opencode/tool/github-triage.txt +6-2Lines changed: 6 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,9 +50,13 @@ Then assign the issue to Him. | 50 | 50 |
| 51 | 51 | ### rekram1-node | 52 | 52 |
| | 53 | +ALL BUGS SHOULD BE assigned to rekram1-node unless they have the `opentui` label. | | 54 | + | 53 | 55 | 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. | 54 | 56 | If no one else makes sense to assign, assign rekram1-node to it. | 55 | 57 |
| | 58 | +Always assign to aiden if the issue mentions "acp", "zed", or model performance issues | | 59 | + | 56 | 60 | ## Breakdown of Labels: | 57 | 61 |
| 58 | 62 | ### nix | @@ -67,9 +71,9 @@ Anything relating to the TUI itself should have an opentui label | 67 | 71 |
| 68 | 72 | Anything related to slow performance, high ram, high cpu usage, or any other performance related issue should have a perf label | 69 | 73 |
| 70 | | -### web | | 74 | +### desktop | 71 | 75 |
| 72 | | -Anything related to `opencode web` or the desktop app should have a web label. Never add this label for anything terminal/tui related | | 76 | +Anything related to `opencode web` command or the desktop app should have a desktop label. Never add this label for anything terminal/tui related | 73 | 77 |
| 74 | 78 | ### zen | 75 | 79 |
| |
|