[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.md instruction to use GitLab is ignored by the built-in UI action

Proposed Solution

Expected Behavior

The "Create PR" feature should be platform-agnostic:

  1. Auto-detect the Git remote platform from the repository's origin URL
  2. Route to the appropriate toolgh for GitHub, GitLab MCP/API for GitLab, etc.
  3. Respect project-level configuration — if CLAUDE.md specifies a preferred platform/tool for MRs, honor that

Suggested Approaches

  • Parse git remote get-url origin to detect the platform
  • Allow a configuration option in CLAUDE.md or .claude/settings.json to 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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗