-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add support for creating new repos under org #1023
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Pull Request Overview
This PR adds support for creating repositories under organizations to the GitHub MCP Server. Previously, the create_repository tool could only create repositories in the user's personal account.
- Adds an optional "organization" parameter to the create_repository tool
- Updates the GitHub API call to use the organization parameter when provided
- Adds comprehensive test coverage for organization repository creation
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
pkg/github/repositories.go | Adds organization parameter handling and updates API call to support organization repos |
pkg/github/repositories_test.go | Adds test case for successful repository creation in organization and updates schema validation |
pkg/github/toolsnaps/create_repository.snap | Updates tool schema snapshot to include organization parameter |
README.md | Documents the new organization parameter in the tool documentation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Nice one! 🚀
Closes: #996