8000 [code_review] Rank comments based on importance by suhaibmujahid · Pull Request #5019 · mozilla/bugbug · GitHub
[go: up one dir, main page]

Skip to content

[code_review] Rank comments based on importance #5019

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

Merged
merged 6 commits into from
May 27, 2025

Conversation

suhaibmujahid
Copy link
Member

@suhaibmujahid suhaibmujahid marked this pull request as ready for review May 20, 2025 23:07
@suhaibmujahid suhaibmujahid requested review from marco-c and Copilot May 20, 2025 23:07
Copy link
@Copilot 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 introduces a ranking mechanism for code review comments by including an order field to specify comment priority, along with related adjustments in both the evaluation tool and comment model. Key changes include enabling verbose mode in the evaluator for debugging, adding the new_comment_order field in the processed output, and updating the inline comment structure and review prompt instructions to support ranking.

Reviewed Changes

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

File Description
scripts/code_review_tool_evaluator.py Enabled verbose logging and updated diff output to include new_comment_order; changed tool variant string.
bugbug/tools/code_review.py Added the order field to InlineComment and updated review generation instructions to expect a ranking order.
Comments suppressed due to low confidence (2)

@suhaibmujahid suhaibmujahid merged commit 6268f07 into mozilla:master May 27, 2025
6 checks passed
@suhaibmujahid suhaibmujahid deleted the with-ranking branch May 27, 2025 06:17
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.

[code_review] Experiment with ranking comments based on importance
2 participants
0