fix(gitea-mcp): add fix/* and other branch patterns to permissions #219

Merged
lmiranda merged 1 commits from fix/branch-permission-patterns into development 2026-01-27 19:42:03 +00:00
Owner

Summary

Add missing branch prefixes to the permission check in gitea MCP tools.

Problem

The _check_branch_permissions function only allowed feat/, feature/, and dev/ prefixes for write operations. This blocked operations like PR creation from fix/* branches, forcing fallback to direct API calls.

Solution

Added common branch patterns:

  • fix/, bugfix/, hotfix/ - for bug fixes
  • chore/, refactor/ - for maintenance
  • docs/, test/ - for documentation and tests

Files Changed

  • mcp-servers/gitea/mcp_server/tools/issues.py
  • mcp-servers/gitea/mcp_server/tools/pull_requests.py

🤖 Generated with Claude Code

## Summary Add missing branch prefixes to the permission check in gitea MCP tools. ## Problem The `_check_branch_permissions` function only allowed `feat/`, `feature/`, and `dev/` prefixes for write operations. This blocked operations like PR creation from `fix/*` branches, forcing fallback to direct API calls. ## Solution Added common branch patterns: - `fix/`, `bugfix/`, `hotfix/` - for bug fixes - `chore/`, `refactor/` - for maintenance - `docs/`, `test/` - for documentation and tests ## Files Changed - `mcp-servers/gitea/mcp_server/tools/issues.py` - `mcp-servers/gitea/mcp_server/tools/pull_requests.py` 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-27 19:41:39 +00:00
The branch permission check was only allowing feat/, feature/, and dev/
prefixes for write operations. This blocked PR creation from fix/*
branches, forcing fallback to direct API calls.

Added patterns:
- fix/, bugfix/, hotfix/ - for bug fixes
- chore/, refactor/ - for maintenance
- docs/, test/ - for documentation and tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 54bb347ee1 into development 2026-01-27 19:42:03 +00:00
lmiranda deleted branch fix/branch-permission-patterns 2026-01-27 19:42:03 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#219