`gh pr status` shows 'no pull request associated' on a branch pulled via `gh pr checkout` from a fork
Describe the bug
If a PR has been opened from a fork, the GH CLI does not show the PR when invoking gh pr status.
This seems to be a similar issue as #5914
Affected version
gh version 2.83.1 (2025-11-13)
https://github.com/cli/cli/releases/tag/v2.83.1
Steps to reproduce the behavior
- Create a repo and have someone open a PR from a fork.
- Invoke
gh pr checkout $IDlocally in your cloned repo - Invoke
gh pr status
Expected vs actual behavior
Actual:
Relevant pull requests in niri81/gh-cli-test
Current branch
There is no pull request associated with [tametsi:tametsi/main]
Created by you
You have no open pull requests
Requesting a code review from you
You have no pull requests to reviewI expected to receive information abut the currently checked out PR (i.e. niri81/gh-cli-test#1).