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 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

Merged
mattdholloway merged 3 commits into main from add-creating-org-repo
Sep 2, 2025

Conversation

Copy link
Contributor

@mattdholloway mattdholloway commented Sep 1, 2025

Closes: #996

@mattdholloway mattdholloway marked this pull request as ready for review September 1, 2025 16:52
@mattdholloway mattdholloway requested a review from a team as a code owner September 1, 2025 16:52
@Copilot Copilot AI review requested due to automatic review settings September 1, 2025 16:52
Copy link
Contributor

@Copilot Copilot AI left a 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.

Copy link
Contributor

@tommaso-moro tommaso-moro left a comment

Choose a reason for hiding this comment

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

Nice one! 🚀

@mattdholloway mattdholloway merged commit 09deac4 into main Sep 2, 2025
16 checks passed
@mattdholloway mattdholloway deleted the add-creating-org-repo branch September 2, 2025 10:30
LuluBeatson pushed a commit to ipapapa/github-mcp-server that referenced this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

Copilot code review Copilot Copilot left review comments

@tommaso-moro tommaso-moro tommaso-moro 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 new repository in an organization

AltStyle によって変換されたページ (->オリジナル) /