Merge pull request #9 from freeedcom/ignore-deleted-files

ignore deleted files
This commit is contained in:
Ville Saukkonen 2023-04-02 17:58:57 +03:00 committed by GitHub
commit 32f7a8317c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);