diff options
| author | Dax <[email protected]> | 2026-03-19 19:02:42 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-19 19:02:42 -0400 |
| commit | 812d1bb32a50aba78ad6b8d7023109a0e5b999bf (patch) | |
| tree | d63c00fc996a3dfa2e466f774c5abe3f85bf8840 /.opencode/tool/github-pr-search.ts | |
| parent | 9a58c43ef4de8952f2ba50da7b5f99fc39ad1a5f (diff) | |
| download | opencode-812d1bb32a50aba78ad6b8d7023109a0e5b999bf.tar.gz opencode-812d1bb32a50aba78ad6b8d7023109a0e5b999bf.zip | |
chore: inline tool descriptions, remove separate .txt files (#18303)
Diffstat (limited to '.opencode/tool/github-pr-search.ts')
| -rw-r--r-- | .opencode/tool/github-pr-search.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.opencode/tool/github-pr-search.ts b/.opencode/tool/github-pr-search.ts index 587fdfaaf..927e68fd7 100644 --- a/.opencode/tool/github-pr-search.ts +++ b/.opencode/tool/github-pr-search.ts @@ -1,7 +1,5 @@ /// <reference path="../env.d.ts" /> import { tool } from "@opencode-ai/plugin" -import DESCRIPTION from "./github-pr-search.txt" - async function githubFetch(endpoint: string, options: RequestInit = {}) { const response = await fetch(`https://api.github.com${endpoint}`, { ...options, @@ -24,7 +22,16 @@ interface PR { } export default tool({ - description: DESCRIPTION, + description: `Use this tool to search GitHub pull requests by title and description. + +This tool searches PRs in the anomalyco/opencode repository and returns LLM-friendly results including: +- PR number and title +- Author +- State (open/closed/merged) +- Labels +- Description snippet + +Use the query parameter to search for keywords that might appear in PR titles or descriptions.`, args: { query: tool.schema.string().describe("Search query for PR titles and descriptions"), limit: tool.schema.number().describe("Maximum number of results to return").default(10), |
