Switch back to one-shot reviews

This commit is contained in:
Colin McDonnell
2025-12-22 14:55:19 -08:00
parent 5353d80388
commit 25896559f0
6 changed files with 276 additions and 404 deletions
+7 -1
View File
@@ -180,7 +180,13 @@ export function CheckoutPrTool(ctx: ToolContext) {
// write diff to file for grep access
const diffContent = diffResponse.data as unknown as string;
const diffPath = join(process.env.PULLFROG_TEMP_DIR!, `pr-${pull_number}.diff`);
const tempDir = process.env.PULLFROG_TEMP_DIR;
if (!tempDir) {
throw new Error(
"PULLFROG_TEMP_DIR not set - checkout_pr must run in pullfrog action context"
);
}
const diffPath = join(tempDir, `pr-${pull_number}.diff`);
writeFileSync(diffPath, diffContent);
log.debug(`wrote diff to ${diffPath} (${diffContent.length} bytes)`);