coderabbitai / ai-pr-reviewer

AI-based Pull Request Summarizer and Reviewer with Chat Capabilities.
https://coderabbit.ai
MIT License
1.42k stars 261 forks source link

post review only when comments are there #379

Closed harjotgill closed 11 months ago

harjotgill commented 11 months ago

Summary by OpenAI

Chore:

🎉 Here's to the code that's lean and mean, No more wasted cycles, it's a well-oiled machine. 🚀 When comments are none, it knows what to shun, Celebrating small wins, this battle is won! 🏆

github-actions[bot] commented 11 months ago

:robot: OpenAI

The changeset introduces an optimization in the submitReview function within src/commenter.ts. It adds a condition to return early if there are no review comments, preventing unnecessary operations.

File Summary
src/commenter.ts The change adds an early return in the submitReview function when there are no review comments. This prevents unnecessary operations when the comment buffer is empty.

Chat with 🤖 OpenAI Bot (@openai)

Code suggestions

Ignoring further reviews



In the recent run, only the files that changed from the base of the PR and between f1cf28d89d8624f97766595089532a7902a57ac8 and 89e2ef09af60bab18eed9df68abe8ba9c397739f commits were reviewed.