[FEATURE] Create PR button should support GitLab and other Git platforms
Resolved 💬 3 comments Opened Apr 14, 2026 by ak-magnolia Closed Apr 14, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Summary
The built-in "Create PR" button in Claude Code is hardcoded to use GitHub (gh CLI). Projects hosted on GitLab (or other platforms like Bitbucket) cannot use this feature, even when CLAUDE.md explicitly instructs to use GitLab MCP tools for merge requests.
Current Behavior
- The "Create PR" button always attempts to create a GitHub Pull Request
- Projects using GitLab must rely on MCP tools (
mcp__GitLab__create_merge_request) as a workaround - The
CLAUDE.mdinstruction to use GitLab is ignored by the built-in UI action
Proposed Solution
Expected Behavior
The "Create PR" feature should be platform-agnostic:
- Auto-detect the Git remote platform from the repository's
originURL - Route to the appropriate tool —
ghfor GitHub, GitLab MCP/API for GitLab, etc. - Respect project-level configuration — if
CLAUDE.mdspecifies a preferred platform/tool for MRs, honor that
Suggested Approaches
- Parse
git remote get-url originto detect the platform - Allow a configuration option in
CLAUDE.mdor.claude/settings.jsonto specify the MR/PR creation method - Fall back to the current GitHub behavior when no other platform is detected
Alternative Solutions
Alternatively use the configured MCP servers with the respective tools?
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
Context
This came up in a project hosted on a self-managed GitLab instance, where the "Create PR" button was unusable and all merge requests had to be created through GitLab MCP tools manually.
Co-Created with Claude, thx for the help
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗