Skip to content

ghReadFileImpl

ghReadFileImpl(args, context): Promise<string>

Defined in: review/src/tools/ghReadFileTool.ts:133

Fetches the full contents of a single file from GitHub via the gh api CLI and decodes it. Returns the decoded text, or a human/agent-readable explanation string on any failure (graceful skip — never throws). owner/repo/ref come from the resolved PR context, not the LLM.

string = ...

PrRepoContext

Promise<string>