Under the hood
Claude Code now recognizes PR/MR creation via GitLab CLI and raw GitHub API calls, not just gh pr create
What
Claude Code detects when you create a pull request or merge request so it can track this activity. That detection now covers more cases:
- Composite shell commands that combine
gh pr createorglab mr createwith allowed extra calls (likegh/glab auth, config commands, orapi /user) are recognized, via a new helper replacing the previous simpler check. - Creating a pull request through a raw
gh apicall that POSTs to/repos/OWNER/REPO/pullsis now also recognized as PR creation, through a separate new helper.
Both paths feed the same telemetry event and pull-request contribution tracking as before.
Why
Previously, using GitLab's CLI or hitting the GitHub API directly instead of the standard gh pr create command could mean Claude Code failed to notice you'd created a pull or merge request. This closes that gap so tracking stays accurate regardless of which tool or command shape you use.