Skip to content

Commit

Permalink
feat: comment with no feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzcarey committed Jan 12, 2025
1 parent 208763e commit c8b639a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/review/llm/askAI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ export const askAI = async (
});

const feedbacks = await processFeedbacks(model, prompts);

if (feedbacks.length === 0) {
return {
markdownReport: 'No issues found in PR 🎉',
feedbacks: [],
};
}

const report = markdownReport(feedbacks);

return {
Expand Down

0 comments on commit c8b639a

Please sign in to comment.