Implement automated team invitation system for GitHub and Discord - #293
Open
konard wants to merge 3 commits into
Open
Implement automated team invitation system for GitHub and Discord#293konard wants to merge 3 commits into
konard wants to merge 3 commits into
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #119
- Add TeamInvitationTrigger to handle @bot invite @username requests in GitHub issues - Add GitHubStorage.InviteToOrganization() method for GitHub org invitations - Add DiscordService for creating temporary Discord invite links - Add OwnerKeeperApprovalTriggerDecorator to ensure only owners/admins can approve invitations - Update Program.cs to support Discord bot token, guild ID, and channel ID configuration - Add Discord.Net NuGet package dependency The bot now automatically processes team invitation requests when: 1. Issue contains "@bot invite @username" pattern 2. Issue author has admin or maintainer permissions 3. Bot invites user to GitHub organization 4. Bot creates Discord invite link if Discord is configured 5. Issue is automatically closed after successful invitation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
konard
marked this pull request as ready for review
September 13, 2025 00:47
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.
🎯 Summary
This PR implements an automated team invitation system that allows GitHub organization owners and repository administrators to invite users to both the GitHub organization and Discord server through simple GitHub issue commands.
Fixes #119
✨ Features
🤖 GitHub Issue Bot Commands
@bot invite @usernamein issue body🔐 GitHub Integration
🎮 Discord Integration (Optional)
🏗️ Implementation Details
Core Components
TeamInvitationTrigger@bot invite @usernamepattern in GitHub issuesOwnerKeeperApprovalTriggerDecoratorDiscordServiceEnhanced
GitHubStorageInviteToOrganization()method for GitHub API integrationCommand Line Configuration
🔄 Workflow
@bot invite @username🧪 Testing
📋 Usage Examples
Basic GitHub-only invitation:
With Discord configured:
The bot will automatically:
@newdeveloper🔧 Configuration Requirements
Required Parameters
--github-user-name: Bot's GitHub username--github-api-token: GitHub API token with org permissions--github-application-name: GitHub application nameOptional Discord Parameters
--discord-token: Discord bot token--discord-guild-id: Discord server ID--discord-channel-id: Channel ID for invites🚀 Benefits
🤖 Generated with Claude Code