You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh pr status shows 'no pull request associated' on a branch pulled via gh pr checkout from a fork #5914
$ gh pr status
Relevant pull requests in Frederick888/external-editor-revived
Current branch
There is no pull request associated with [rlcintra:rlcintra/master]
Created by you
You have no open pull requests
Requesting a code review from you
You have no pull requests to review
$ gh pr status --json number,baseRefName,headRefName,headRepositoryOwner
{
"createdBy": [],
"needsReview": []
}
Perhaps if a user adds a remote for the fork then fetches everything manually, it's ok for gh-cli to not be able to identify such branches; but if it's pulled via gh pr checkout, I'd expect gh pr status to report correct info.
From this line, I'm guessing that gh misinterpreted the name of the remote branch (it's supposed to be master, not rlcintra/master which is the local branch name):
There is no pull request associated with [rlcintra:rlcintra/master]
I cannot reproduce on my end. Are you running the latest version of gh?
Activity
mislav commentedon Jul 11, 2022
Thank you for reporting!
From this line, I'm guessing that gh misinterpreted the name of the remote branch (it's supposed to be
master, notrlcintra/masterwhich is the local branch name):I cannot reproduce on my end. Are you running the latest version of gh?
Frederick888 commentedon Jul 11, 2022
Sorry totally forgot to post that.
Yup I'm using
mislav commentedon Jul 11, 2022
Thank you; I've managed to track this down and propose a PR with a fix.
Frederick888 commentedon Jul 11, 2022
Wow that was quick. Thanks a ton!