{"version":"2.1.335","anchor":"pr-lookup-validates-the-remote-against-the-saved-repo-record","canonical_anchor":"pr-lookup-validates-the-remote-against-the-saved-repo-record","heading":"Pull request lookup now checks that the git remote matches your repository","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/pr-lookup-validates-the-remote-against-the-saved-repo-record","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Pull request lookup now checks that the git remote matches your repository\n\nFinding the pull request number now reads your git remotes and returns nothing when the remote does not match the repository Claude Code resolved\n\n**What**\n\nWhen Claude Code looks up the pull request number for your checkout, it now reads your git remotes (the named server addresses your repository pushes to and pulls from) instead of using the repository in the current folder directly. It takes into account:\n\n- the remote the GitHub CLI has marked as resolved\n\n- the `GH_REPO` and `GH_HOST` environment variables\n\nIf the remote does not match the repository Claude Code resolved, the lookup returns nothing. The Gerrit lookup now runs in the saved repository folder.\n\n**Why**\n\nIn forks or checkouts with several remotes, Claude Code is less likely to show a pull request that belongs to a different repository.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}