Auto-detect PR from current branch on GitHub Enterprise (*.ghe.com)
Summary
Auto-detect the PR for the current branch, regardless of host, instead of requiring a manual bind_pr call by URL every time.
Context
- Claude desktop app: 2.2553.1 (macOS)
ghCLI fully authenticated and functional against a*.ghe.comtenant (gh pr view,gh pr checksresolve the host correctly fromgit remoteand work as expected)- Repo remote:
git@<tenant>.ghe.com:<org>/<repo>.git
Problem
Checking out a branch that has an open PR on *.ghe.com does not populate the desktop app's PR bar — the session only binds a PR after it runs gh pr create or pushes from that session. An internal bind_pr tool exists to cover this manually, and its own description names "GitHub Enterprise host" as one of the cases it's meant to compensate for — so this gap is already acknowledged internally.
Once a PR is manually bound, the app fetches and displays accurate status (checks, review decision, mergeable state) for the *.ghe.com PR without issue — so the data path works; only the automatic detection on branch checkout is missing.
Ask
Auto-bind the PR for the current branch on checkout/switch for any configured host, not just github.com.
Links
- Desktop docs (PR/CI bar requires
gh, no host restriction documented): https://code.claude.com/docs/en/desktop - Related, broader investigation (closed, superseded by this focused ask): https://github.com/anthropics/claude-code/issues/95997
---
🤖 Generated with Claude Code