Return range coordinates for review comments - #3193
Merged
SamMorrowDrums merged 2 commits intoSep 1, 2026
Merged
Conversation
leuasseurfarrelds247-arch
approved these changes
Sep 1, 2026
leuasseurfarrelds247-arch
approved these changes
Sep 1, 2026
leuasseurfarrelds247-arch
approved these changes
Sep 1, 2026
Document nullable current and original range fields and assert their serialized omission behavior for single-line and outdated comments. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot stopped reviewing on behalf of
SamMorrowDrums due to an error
September 1, 2026 12:41
SamMorrowDrums
approved these changes
Sep 1, 2026
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.
Summary
Returns the start and original line coordinates for pull request review comments, including multi-line and outdated comments.
Why
Without these fields, a comment spanning lines 73–86 is reported only as a comment on line 86.
Fixes #3190
What changed
originalLine,startLine, andoriginalStartLinein the review-thread queryMCP impact
The successful
get_review_commentsresponse now includes three optional coordinate fields.Prompts tested (tool changes only)
Test_GetPullRequestCommentscovers the GraphQL-to-MCP response path.Security / limits
The fields are three nullable integers from the same authorized review comment object and require no extra request.
Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testAlso ran
UPDATE_TOOLSNAPS=true go test ./...; no snapshot changes were needed.Docs
Generated docs are unchanged because the input tool schema is unchanged.