GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: inline tool descriptions, remove separate .txt files (#18303) · widomin/opencode@812d1bb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .opencode
    • .gitignore
    • tool
      • github-pr-search.ts
      • github-pr-search.txt
      • github-triage.ts
      • github-triage.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.opencode/.gitignore‎

Copy file name to clipboard
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
plans/
2-
bun.lock
1+
node_modules
2+
plans
33
package.json
4-
package-lock.json
4+
bun.lock
5+
.gitignore
6+
package-lock.json
Collapse file

‎.opencode/tool/github-pr-search.ts‎

Copy file name to clipboardExpand all lines: .opencode/tool/github-pr-search.ts
+10-3Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/// <reference path="../env.d.ts" />
22
import { tool } from "@opencode-ai/plugin"
3-
import DESCRIPTION from "./github-pr-search.txt"
4-
53
async function githubFetch(endpoint: string, options: RequestInit = {}) {
64
const response = await fetch(`https://api.github.com${endpoint}`, {
75
...options,
@@ -24,7 +22,16 @@ interface PR {
2422
}
2523

2624
export default tool({
27-
description: DESCRIPTION,
25+
description: `Use this tool to search GitHub pull requests by title and description.
26+
27+
This tool searches PRs in the anomalyco/opencode repository and returns LLM-friendly results including:
28+
- PR number and title
29+
- Author
30+
- State (open/closed/merged)
31+
- Labels
32+
- Description snippet
33+
34+
Use the query parameter to search for keywords that might appear in PR titles or descriptions.`,
2835
args: {
2936
query: tool.schema.string().describe("Search query for PR titles and descriptions"),
3037
limit: tool.schema.number().describe("Maximum number of results to return").default(10),
Collapse file

‎.opencode/tool/github-pr-search.txt‎

Copy file name to clipboardExpand all lines: .opencode/tool/github-pr-search.txt
-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file

‎.opencode/tool/github-triage.ts‎

Copy file name to clipboardExpand all lines: .opencode/tool/github-triage.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/// <reference path="../env.d.ts" />
22
import { tool } from "@opencode-ai/plugin"
3-
import DESCRIPTION from "./github-triage.txt"
4-
53
const TEAM = {
64
desktop: ["adamdotdevin", "iamdavidhill", "Brendonovich", "nexxeln"],
75
zen: ["fwang", "MrMushrooooom"],
@@ -40,7 +38,12 @@ async function githubFetch(endpoint: string, options: RequestInit = {}) {
4038
}
4139

4240
export default tool({
43-
description: DESCRIPTION,
41+
description: `Use this tool to assign and/or label a GitHub issue.
42+
43+
Choose labels and assignee using the current triage policy and ownership rules.
44+
Pick the most fitting labels for the issue and assign one owner.
45+
46+
If unsure, choose the team/section with the most overlap with the issue and assign a member from that team at random.`,
4447
args: {
4548
assignee: tool.schema
4649
.enum(ASSIGNEES as [string, ...string[]])
Collapse file

‎.opencode/tool/github-triage.txt‎

Copy file name to clipboardExpand all lines: .opencode/tool/github-triage.txt
-6Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.