(file: PullRequestFile, hunk: Hunk)
| 9 | import { type DiffScopeOptions, resolveDiffScope } from "./scope.js"; |
| 10 | |
| 11 | function formatHunkForPrompt(file: PullRequestFile, hunk: Hunk): string { |
| 12 | return `=== File: ${file.path} (${file.status}) | filePath: "${file.path}", oldStart: ${hunk.oldStart} === |
| 13 | === Hunk @${hunk.oldStart}: ${hunk.header} === |
| 14 | ${formatHunkDiffWithLineNumbers(hunk)}`; |
| 15 | } |
| 16 | |
| 17 | export async function runPrep(options: DiffScopeOptions): Promise<string> { |
| 18 | const { scope, rawDiff, mergeBaseSha } = await resolveDiffScope(options); |
no test coverage detected