Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

Adds review behavior guidelines to ensure consistent, high-quality code reviews.

Changes

  • Consolidated review passes: Reviewers should provide all feedback in a single review round rather than scattering comments across multiple partial reviews.
  • Avoid stale comments: Do not re-post comments that have been addressed or are no longer relevant after new commits are pushed.
  • Respect user justifications: Do not re-post a review comment if a user has directly responded to it with justification for why the code exists as written.
Original prompt

send a pr to update thie file to add these two new rules nicely: Provide all review comments in a single review pass.
Avoid scattering feedback across multiple partial reviews; consolidate findings into one coherent review round.

Do not generate false-positive or already-resolved comments when new commits are pushed.
Only surface issues that still apply after the latest changes, and avoid re-posting comments that have been addressed or are no longer relevant.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

… passes and avoiding stale comments

Co-authored-by: YunchuWang <[email protected]>
Copilot AI changed the title [WIP] Update file to add new review commenting rules Add Code Review Guidelines to copilot-instructions.md Dec 3, 2025
Copilot AI requested a review from YunchuWang December 3, 2025 21:20
@YunchuWang YunchuWang marked this pull request as ready for review December 3, 2025 21:24
Copilot AI review requested due to automatic review settings December 3, 2025 21:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the GitHub Copilot instructions by adding a dedicated "Code Review Guidelines" section that establishes best practices for code review processes. The guidelines aim to improve review quality by ensuring comprehensive, consolidated feedback and avoiding redundant or stale comments.

Key Changes

  • Added new "Code Review Guidelines" section with two important principles for conducting reviews
  • Guideline 1: Consolidate all feedback into a single comprehensive review pass
  • Guideline 2: Only surface relevant issues and avoid re-posting resolved comments

When reviewing code, follow these guidelines:

- Provide all review comments in a single review pass. Avoid scattering feedback across multiple partial reviews; consolidate findings into one coherent review round.
- Do not generate false-positive or already-resolved comments when new commits are pushed. Only surface issues that still apply after the latest changes, and avoid re-posting comments that have been addressed or are no longer relevant.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we be more specific with addressed? I think we should break it into another bullet point and say something along the lines of "Do not post a review comment that has been directly responded to by a user with justification for why it exists." Or something along those lines, I'm sure copilot can figure out how to write that better :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot update this pr to address the comment above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a new bullet point that specifically addresses this: "Do not re-post a review comment if a user has directly responded to it with justification for why the code exists as written. Respect user explanations and avoid redundant feedback on justified code decisions." (21ccb86)

@YunchuWang
Copy link
Member

@copilot update this pr to address the comment
image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copy link
Contributor Author

Copilot AI commented Dec 3, 2025

@copilot update this pr to address the comment
image

This was already addressed in commit 21ccb86. Line 76 now includes: "Do not re-post a review comment if a user has directly responded to it with justification for why the code exists as written. Respect user explanations and avoid redundant feedback on justified code decisions."

@YunchuWang YunchuWang merged commit 94b3850 into main Dec 3, 2025
3 of 4 checks passed
@YunchuWang YunchuWang deleted the copilot/update-review-commenting-rules branch December 3, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants