mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2024-11-23 04:29:03 +00:00
Merge pull request #9 from freeedcom/ignore-deleted-files
ignore deleted files
This commit is contained in:
commit
32f7a8317c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user