fix(gitea-mcp): add fix/* and other branch patterns to permissions #219
Reference in New Issue
Block a user
Delete Branch "fix/branch-permission-patterns"
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?
Summary
Add missing branch prefixes to the permission check in gitea MCP tools.
Problem
The
_check_branch_permissionsfunction only allowedfeat/,feature/, anddev/prefixes for write operations. This blocked operations like PR creation fromfix/*branches, forcing fallback to direct API calls.Solution
Added common branch patterns:
fix/,bugfix/,hotfix/- for bug fixeschore/,refactor/- for maintenancedocs/,test/- for documentation and testsFiles Changed
mcp-servers/gitea/mcp_server/tools/issues.pymcp-servers/gitea/mcp_server/tools/pull_requests.py🤖 Generated with Claude Code