Skip to content

Conversation

plaskowski
Copy link

@plaskowski plaskowski commented Jul 21, 2025

Add a new tool that allows AI agents to reply to existing pull request comments. This tool uses GitHub's CreateCommentInReplyTo REST API to create threaded conversations on pull requests.

Features:

  • Reply to any existing PR comment using its ID
  • Proper error handling for missing parameters and API failures
  • Comprehensive test coverage (8 test cases)
  • Follows project patterns and conventions
  • Registered in pull_requests toolset as a write operation

Parameters:

  • owner: Repository owner (required)
  • repo: Repository name (required)
  • pullNumber: Pull request number (required)
  • commentId: ID of comment to reply to (required)
  • body: Reply text content (required)

This tool complements the existing add_comment_to_pending_review tool by enabling responses to already-posted comments, enhancing AI-powered code review workflows.

Closes: #635

Add a new tool that allows AI agents to reply to existing pull request comments.
This tool uses GitHub's CreateCommentInReplyTo REST API to create threaded
conversations on pull requests.

Features:
- Reply to any existing PR comment using its ID
- Proper error handling for missing parameters and API failures
- Comprehensive test coverage (8 test cases)
- Follows project patterns and conventions
- Registered in pull_requests toolset as a write operation

Parameters:
- owner: Repository owner (required)
- repo: Repository name (required)
- pullNumber: Pull request number (required)
- commentId: ID of comment to reply to (required)
- body: Reply text content (required)

This tool complements the existing add_comment_to_pending_review tool by
enabling responses to already-posted comments, enhancing AI-powered
code review workflows.

Closes: #N/A
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.

Support replying to existing PR review comments
1 participant