Skip to content

Commit 32f7a83

Browse files
authored
Merge pull request #9 from freeedcom/ignore-deleted-files
ignore deleted files
2 parents cc0ff7a + 1e21766 commit 32f7a83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ async function analyzeCode(
6464
const comments: Array<{ body: string; path: string; line: number }> = [];
6565

6666
for (const file of parsedDiff) {
67+
if (file.to === "/dev/null") continue; // Ignore deleted files
6768
for (const chunk of file.chunks) {
6869
const prompt = createPrompt(file, chunk, prDetails);
6970
const aiResponse = await getAIResponse(prompt);

0 commit comments

Comments
 (0)