{"version":"2.1.333","anchor":"github-pr-lookup-for-current-branch","canonical_anchor":"github-pr-lookup-for-current-branch","heading":"Claude Code looks up the open GitHub pull request for your branch","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/github-pr-lookup-for-current-branch","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Claude Code looks up the open GitHub pull request for your branch\n\nClaude Code can ask GitHub for an open pull request on the current branch, skipping main, master and non-GitHub hosts\n\n**Unclear.** Where the pull request is shown, and what switch controls the `gh` path, is not stated.\n\n**What**\n\nClaude Code can now ask GitHub whether there is an open pull request for the branch you are on. It skips the lookup when:\n\n- the branch is `HEAD`, `main`, `master` or the repository's default branch\n\n- the repository is hosted on GitLab or Bitbucket\n\nA separate path that runs the `gh` command, GitHub's own command-line tool, is behind a switch and runs detached from your terminal with a cleaned-up set of environment variables.\n\n**Why**\n\nThis makes it possible to show a link to the pull request that belongs to your branch.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}