Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add tools for one-off PR comments and replying to PR review comments#143

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
juruen merged 10 commits intogithub:mainfromashwin-ant:prcomments
Apr 12, 2025

Conversation

ashwin-ant
Copy link
Contributor

  • Added two new tools for working with pull request review comments:
    • add_pull_request_review_comment: Create line, multi-line, or file-level review comments (not attached to a PR review). Corresponds tothis endpoint.
    • reply_to_pull_request_review_comment: Reply to existing PR review comments. Corresponds tothis endpoint.
  • Verified functionality manually in MCP Insector

ashwin-antand others added3 commitsApril 8, 2025 07:41
Adds the ability to add review comments to pull requests with support for line, multi-line, and file-level comments, as well as replying to existing comments.🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
Adds a new tool to reply to existing pull request review comments using the GitHub API's comment reply endpoint. This allows for threaded discussions on pull request reviews.🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
@ashwin-ant
Copy link
ContributorAuthor

@juruen mind taking a look? Would love to get this in if possible 😄

juruen reacted with thumbs up emoji

@ashwin-antashwin-antforce-pushed theprcomments branch 2 times, most recently from104ba61 to84e6f6aCompareApril 9, 2025 01:28
@juruen
Copy link
Collaborator

I manually tested this and things worked as expected.

Screenshot 2025-04-11 at 11 02 35

I'd say we are good to merge!

Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

@juruen
Copy link
Collaborator

@ashwin-ant although what we have now seems to work, there's something else I'd like to explore here: the possibility of using a single tool for both cases, asadd_pull_request_review_comment also supports getting anin_reply_to.

I've tried to reply to a comment with that tool and hasn't worked, so I'd like us to spend a bit of time on it to try to figure that out.

Thanks!

Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please, see my comment about trying to use a single tool for both use cases.

Thanks!

ashwin-antand others added2 commitsApril 11, 2025 08:11
The separate AddPullRequestReviewComment and ReplyToPullRequestReviewComment tools have been merged into a single tool that handles both creating new comments and replying to existing ones. This approach simplifies the API and provides a more consistent interface for users.- Made commit_id and path optional when using in_reply_to for replies- Updated the tests to verify both comment and reply functionality- Removed the separate ReplyToPullRequestReviewComment tool- Fixed test expectations to match how errors are returned🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
@ashwin-ant
Copy link
ContributorAuthor

@juruen Updated to only have a single tool. Turns out theadd_pull_request_review_comment tool was failing when used within_reply_to due to a subtlety in the underlyinggo-github library, butthere was a way to work around it.

@ashwin-antashwin-ant requested a review fromjuruenApril 11, 2025 15:20
@juruen
Copy link
Collaborator

juruen commentedApr 12, 2025
edited
Loading

@juruen Updated to only have a single tool. Turns out theadd_pull_request_review_comment tool was failing when used within_reply_to due to a subtlety in the underlyinggo-github library, butthere was a way to work around it.

Thank you, so much! I've manually tested the latest version and works perfectly for both cases!

@juruenjuruen merged commit6c05b40 intogithub:mainApr 12, 2025
9 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@juruenjuruenjuruen approved these changes

@SamMorrowDrumsSamMorrowDrumsAwaiting requested review from SamMorrowDrums

@williammartinwilliammartinAwaiting requested review from williammartin

@tobytobyAwaiting requested review from toby

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ashwin-ant@juruen

[8]ページ先頭

©2009-2025 Movatter.jp