- Notifications
You must be signed in to change notification settings - Fork899
enhancement: add tool to request reviewers for pull requests#265
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
@MayorFaj thank you again for your time working on this project! I have a suggestion, instead of creating a new tool, we could leverage the existing Is that something that you'd like to explore? Otherwise, I can take a stab at it when I have the time. Thanks! |
Sure will take a look |
This pull request introduces a new feature to request reviewers for a pull request in the GitHub MCP tool. The changes include updates to the documentation, implementation of the new tool, and corresponding tests. Below are the most important changes:
New Feature Implementation:
pkg/github/pullrequests.go
: Added theRequestPullRequestReviewers
function to create a tool for requesting reviewers for a pull request. This includes defining the tool's input schema, extracting parameters, and making the API call to GitHub.Documentation Updates:
README.md
: Updated to include documentation for the newrequest_pull_request_reviewers
tool, detailing its parameters and usage.[1][2]Test Cases:
pkg/github/pullrequests_test.go
: Added tests for the newRequestPullRequestReviewers
function to verify the tool definition and various scenarios, including successful requests and error handling.Server Integration:
pkg/github/server.go
: Integrated the newRequestPullRequestReviewers
tool into the server setup, ensuring it is available for use.Closes:#259