add support for the create_pull_request_review_tool#33
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for a new tool "create_pull_request_review" that enables users to create a review on a pull request.
- Introduces a new function createPullRequestReview in pkg/github/pullrequests.go.
- Adds corresponding tests in pkg/github/pullrequests_test.go to verify behavior, including various input scenarios.
- Updates the README.md documentation and registers the new tool in pkg/github/server.go.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/github/pullrequests.go | Adds the createPullRequestReview function to construct and send review requests. |
| pkg/github/pullrequests_test.go | Provides unit tests for various review creation scenarios. |
| README.md | Documents the new create_pull_request_review tool and its input parameters. |
| pkg/github/server.go | Registers the new tool with the server. |
Comments suppressed due to low confidence (2)
README.md:129
- The description contains a redundancy ('pull request review'). Consider changing it to 'Create a review on a pull request' for clarity.
- **create_pull_request_review** - Create a review on a pull request review
pkg/github/pullrequests.go:570
- [nitpick] The use of the variable name 'body' here shadows the outer 'body' variable. Consider renaming it (e.g. 'commentBody') to improve clarity.
body, ok := commentMap["body"].(string)
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
8e033fd to
5f5a0a5
Compare
a9681e0 to
7b3e15e
Compare
SamMorrowDrums
approved these changes
Mar 24, 2025
7b3e15e to
eec932c
Compare
DaleSeo
pushed a commit
to DaleSeo/github-mcp-server
that referenced
this pull request
Oct 24, 2025
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.
Context
This PR adds support for the create_pull_request_review_tool.