This PR adds a repository.ParseWithHost function that is necessary for gh to use go-gh for parsing repository strings. Additionally, it changes repository.Parse to now look at the config file for a viable host instead of just looking at GH_HOST before defaulting to github.com. This new behavior also matches the current functionality in gh.
This PR adds a
repository.ParseWithHost
function that is necessary forgh
to usego-gh
for parsing repository strings. Additionally, it changesrepository.Parse
to now look at the config file for a viable host instead of just looking atGH_HOST
before defaulting togithub.com
. This new behavior also matches the current functionality ingh
.cc https://github.com/cli/cli/issues/5560 corresponds to https://github.com/cli/cli/pull/5655