forked from cardosofelipe/fast-next-template
feat(mcp): Git Operations MCP - GitHub Provider (Optional) #110
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue
Part of #58 (Git Operations MCP Server)
Summary
Implement the GitHub provider using PyGithub for remote Git operations. This is a follow-up after Gitea provider is working.
Tasks
GitHubProvider Class (
providers/github.py)GitHubProviderclass implementingGitProviderprotocolcreate_pull_request()methodlist_pull_requests()methodget_pull_request()methodmerge_pull_request()methodclose_pull_request()methodadd_pr_comment()methodadd_pr_reviewer()methodget_pr_diff()methodlist_branches()methodcreate_branch()methoddelete_branch()methodGitHub-Specific Features
Provider Factory
ProviderFactoryclassTesting
Acceptance Criteria
Dependencies
Labels
Implementation Complete
The GitHub provider has been implemented with full feature parity to the Gitea provider:
Features Implemented
PR Operations:
Branch Operations:
Collaboration:
Error Handling:
Server Integration
GIT_OPS_GITHUB_TOKENis setTests
39 comprehensive tests covering:
Commit:
1779239Ready for code review.