Skip to content

Conversation

issei-m
Copy link

@issei-m issei-m commented Oct 15, 2025

I've added only the create-invitation, since that’s the only one I need at the moment.
And this is the first pull-req for this repository, so I'm not sure whether other tools for org should be implemented as well. (if so, I can do that)

@issei-m issei-m requested a review from a team as a code owner October 15, 2025 12:00
@Copilot Copilot AI review requested due to automatic review settings October 15, 2025 12:00
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 introduces a new GitHub organization invitation tool that allows creating invitations for users to join an organization through the MCP server. The tool supports inviting users by either GitHub user ID or email address and includes comprehensive validation and error handling.

  • Added CreateOrgInvitation function to create organization invitations via GitHub API
  • Integrated the new tool into the existing toolset framework as a write operation
  • Comprehensive test coverage for various scenarios including success cases, validation errors, and API failures

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
pkg/github/tools.go Integrates the new CreateOrgInvitation tool into the orgs toolset as a write operation
pkg/github/orgs.go Implements the core CreateOrgInvitation function with parameter validation and GitHub API integration
pkg/github/orgs_test.go Provides comprehensive test coverage for the CreateOrgInvitation functionality
pkg/github/toolsnaps/create_org_invitation.snap Contains the tool definition snapshot for testing validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@issei-m issei-m force-pushed the org branch 2 times, most recently from 8966fd0 to 46389d6 Compare October 15, 2025 12:28
@issei-m issei-m changed the title Create org invitation tool feat: Add create org invitation tool Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant