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 line parameter support to create_pull_request_review tool#118

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 5 commits intogithub:mainfromashwin-ant:pullrequestreviewline
Apr 7, 2025

Conversation

ashwin-ant
Copy link
Contributor

Inline comments in pull request reviews only supportedposition previously. This addsline support as well (the API requires one or the other).

  • Updated schema to make path and body the only required fields
  • Added line parameter as alternative to position for inline comments
  • Updated handler to accept either position or line based on GitHub API spec
  • Added new test case that verifies line parameter works properly
  • Updated error messages for better validation

Closes:#112

🤖 Generated withClaude Code

- Updated schema to make path and body the only required fields- Added line parameter as alternative to position for inline comments- Updated handler to accept either position or line based on GitHub API spec- Added new test case that verifies line parameter works properly- Updated error messages for better validation🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
@juruen
Copy link
Collaborator

@ashwin-ant thank you so much for your contribution!

We are usingposition–which is deprecated– to mimic what theAnthropic server was doing. However, now that the initial release is out, it's probably time to update it.

We should probably start using not onlyline but alsoside,start_line, andstar_side. This will allow for multi-line comments.

We can probably leaveposition for a while until we confirm that using the new parameters is working fine.

If you want to update this PR to fully support that, it'd be awesome. Otherwise, I can try to get it done at some point next week.

- Added new parameters: line, side, start_line, start_side- Added proper validation for multi-line comment parameters- Improved validation logic to handle parameter combinations- Added test cases for regular and multi-line comments- Updated schema documentation for better tool discoverability🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
@ashwin-ant
Copy link
ContributorAuthor

@juruen updated! How does this look?

@juruen
Copy link
Collaborator

@juruen updated! How does this look?

@ashwin-ant looks great! 😺

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! Let's get this merged! 🚀

@juruenjuruen merged commit31471a4 intogithub:mainApr 7, 2025
9 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
…#118)* Add line parameter support to create_pull_request_review tool- Updated schema to make path and body the only required fields- Added line parameter as alternative to position for inline comments- Updated handler to accept either position or line based on GitHub API spec- Added new test case that verifies line parameter works properly- Updated error messages for better validation🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>* Expand PR review API with multi-line comment support- Added new parameters: line, side, start_line, start_side- Added proper validation for multi-line comment parameters- Improved validation logic to handle parameter combinations- Added test cases for regular and multi-line comments- Updated schema documentation for better tool discoverability🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>* gofmt---------Co-authored-by: Claude <noreply@anthropic.com>Co-authored-by: Javier Uruen Val <juruen@github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@juruenjuruenjuruen approved these changes

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

Successfully merging this pull request may close these issues.

create_pull_request_review tool does not support inline comments withline parameter
2 participants
@ashwin-ant@juruen

[8]ページ先頭

©2009-2025 Movatter.jp