-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-prrelating to the gh pr commandrelating to the gh pr commandp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Commands such as pr status
inspect the current branch and check its upstream configuration to see where it's pushed while resolving the branch to the associated PR.
Some branches might be pushed but have no upstream configuration (simple git push <remote> HEAD
withough -u
). Right now mechanisms such as prSelectorForCurrentBranch()
don't recognize such branches as being published to a remote. We should perhaps iterate over all remotes and assume one to be a push target if we find a same-named tracking branch on one. (This will perhaps be prone to false-positives, but it's a marked improvement over current behavior.)
Reported by @rista404 #567 (comment)
jsjoeio, iloveitaly, Symbolk, shwina, bzub and 8 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-prrelating to the gh pr commandrelating to the gh pr commandp3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic