The CurrentRepository function should take into account the GH_REPO environment variable, and if it is specified return that repository rather than the current flow of looking at the filesystem and git remotes.
As part of this work we should make the parsing function used for parsing GH_REPO into a repository available for user consumption.
The
CurrentRepository
function should take into account theGH_REPO
environment variable, and if it is specified return that repository rather than the current flow of looking at the filesystem and git remotes.As part of this work we should make the parsing function used for parsing
GH_REPO
into arepository
available for user consumption.cc https://github.com/cli/go-gh/issues/5