fix: enhance PR reviewer mode to prevent duplicate comments #5382
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR enhances the PR reviewer mode to explicitly prevent duplicate comments by ensuring existing feedback is checked before providing new reviews.
Changes Made
Reorganized workflow steps to fetch existing comments BEFORE any code review (moved to Step 4)
Added dedicated Step 6 "Verify Existing Comments Against Current Code" with detailed instructions for:
Updated Step 8 (Prepare Review Comments) to include critical reminder to cross-reference with Step 6 notes
Enhanced Step 9 (Preview) to show which existing comments were verified as resolved
Updated best practices to emphasize:
Enhanced common mistakes to highlight:
Testing
The changes are to XML instruction files that guide the PR reviewer mode behavior. The workflow now ensures:
Checklist
Important
Enhance PR reviewer mode to prevent duplicate comments by reorganizing workflow steps and updating best practices and common mistakes in XML files.
1_workflow.xmlto fetch existing comments before code review (Step 4).This description was created by
for 828f4a5. You can customize this summary. It will automatically update as commits are pushed.