diff --git a/src/main.ts b/src/main.ts index a7eb88e..af9bd2d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -64,6 +64,7 @@ async function analyzeCode( const comments: Array<{ body: string; path: string; line: number }> = []; for (const file of parsedDiff) { + if (file.to === "/dev/null") continue; // Ignore deleted files for (const chunk of file.chunks) { const prompt = createPrompt(file, chunk, prDetails); const aiResponse = await getAIResponse(prompt);