feat: include file path and line number in PR review comments#82
Merged
neekolas merged 1 commit intoxmtplabs:mainfrom Mar 30, 2026
Merged
feat: include file path and line number in PR review comments#82neekolas merged 1 commit intoxmtplabs:mainfrom
neekolas merged 1 commit intoxmtplabs:mainfrom
Conversation
When a PR review comment is forwarded to a Coder task, the message now includes the file path and line number where the comment was placed, giving the agent the context it needs to locate the code in question. Resolves xmtplabs#81 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
neekolas
approved these changes
Mar 30, 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.
Resolves #81
Summary
pathandlinefrompull_request_review_commentwebhook payloadsFile: <path>:<line>line to the formatted message sent to Coder tasksChanges
src/webhook-router.ts— ExtractfilePathandlineNumberfrom review comment payloadssrc/webhook-router.ts— Add optional fields toPRCommentContexttypesrc/handler-dispatcher.ts— Pass new fields through to handlersrc/handlers/pr-comment.ts— Add fields to interface and forward to message formattersrc/messages.ts— IncludeFile:line in output when file path is presentExample output
Test plan
formatPRCommentMessageincludes file path and line numberformatPRCommentMessageincludes file path without line numberformatPRCommentMessageomits file line when not providedNote
Include file path and line number in PR review comment messages
PRCommentContextandCommentMessageParamswith optionalfilePathandlineNumberfields, populated from the webhook payload'scomment.pathandcomment.line.formatPRCommentMessagenow appends aFile: <path>[:<line>]line to the formatted message whenfilePathis present.WebhookRouterextracts these fields frompull_request_review_commentevents and passes them through to the handler via the dispatch context.Macroscope summarized a4a1bce.