Add gerrit_get_file_diff MCP tool and diff-anchored draft comments#11
Draft
adityabhat-1 wants to merge 1 commit into
Draft
Add gerrit_get_file_diff MCP tool and diff-anchored draft comments#11adityabhat-1 wants to merge 1 commit into
adityabhat-1 wants to merge 1 commit into
Conversation
adityabhat-1
marked this pull request as draft
April 21, 2026 10:14
adityabhat-1
marked this pull request as ready for review
April 29, 2026 18:49
adityabhat-1
force-pushed
the
comment-navigation-loading-fix
branch
from
April 29, 2026 18:55
99637bf to
4486c34
Compare
adityabhat-1
marked this pull request as draft
April 30, 2026 08:54
Adds a new gerrit_get_file_diff MCP tool that returns simplified hunk ranges (aStart/aLines on PARENT, bStart/bLines on REVISION) so the agent reviewer can pick exact line numbers and the correct side before posting. gerrit_post_draft_comment now accepts side (PARENT/REVISION) and range for multi-line regions. The AI review prompt is updated to require fetching the diff in a new step 3b and to only anchor comments on lines that actually appear in a hunk. Made-with: Cursor
adityabhat-1
force-pushed
the
comment-navigation-loading-fix
branch
from
April 30, 2026 09:09
4486c34 to
8468164
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
adds mcp tool to ensure that comments are posted at the right locations
Adds a new gerrit_get_file_diff MCP tool that returns simplified hunk ranges (aStart/aLines on PARENT, bStart/bLines on REVISION) so the agent reviewer can pick exact line numbers and the correct side before posting.
gerrit_post_draft_comment now accepts
side(PARENT/REVISION) andrangefor multi-line regions.The AI review prompt is updated to require fetching the diff in a new step 3b and to only anchor comments on lines that actually appear in a hunk.
Made-with: Cursor