Closed seachicken closed 2 years ago
Currently I use gh repo view
to determine which repository to search for PRs, but if there are multiple remotes, the first element seems to be selected.
https://github.com/cli/cli/blob/c9f44ffda9f9ff77820e5dda9b7b8885ad2136d7/context/context.go#L82
This will select the upstream, but expects the origin to be selected.
As a workaround, we can work around this problem by selecting the base repository with the gh
command.
gh repo view
in the direcotory of local repositoryHowever, this method of manipulating the base repository is subject to change in the future (related issue)
Here is my braindump for now:
Target repositories whose remote name is origin, otherwise use the first element
Target all remote repositories
Describe the bug If the remotes looks like this:
git remote -v
PRs in origin are not shown in the results of
gh poi
.Your Environment