-
Notifications
You must be signed in to change notification settings - Fork 964
fix: avoid rare cases where the AI reviewer merely describes the changes #1863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: avoid rare cases where the AI reviewer merely describes the changes #1863
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
In any case, it is already clearly said:
|
@mrT23 That was already fixed by the pull request author. This indicates that the AI merely reiterated an already established fact. Consider a scenario where you submit a typo fix, and the AI responds, "Awesome, you fixed a typo!" In other words, the AI is stating a fact that has already occurred. In my private project, I had a similar case: I added a However, this AI task misinterpretation happens extremely rarely, approximately once per 100 reviews. The most of the time the AI reviewer understands that it must not just spell out the existing changes. |
…or added changes" This reverts commit 28dda4b.
8c311ad
to
af84a4a
Compare
Indeed, my initial contribution was a bit imprecise. Thank you for pointing out the @mrT23 By the way, why does someone write |
@alessio-locatelli and are welcome to transform the PR to resolve this :-) |
User description
Problem Example
Here's an invalid AI comment that offers no remarks or suggestions and merely repeats the evident, known fact about what was changed: #1745 (comment)
Why?
Describing the changes belongs in the pull request description and commit messages. A reviewer's purpose is to point out bugs and errors and to suggest improvements.
PR Type
Enhancement
Description
• Updated PR reviewer prompt to focus on identifying issues and improvements
• Added guidance to avoid merely describing changes in reviews
Changes diagram
Changes walkthrough 📝
pr_reviewer_prompts.toml
Enhanced reviewer prompt for better feedback focus
pr_agent/settings/pr_reviewer_prompts.toml
• Enhanced system prompt with explicit guidance to focus on
identifying issues and improvements
• Added instruction to avoid
merely describing changes in PR reviews