Closed rastersize closed 2 weeks ago
Thanks for the good point! gh-poi's policy is to get as close as possible to the gh specifications, so it would be good to support it.
This code determines the host, so it looks like it will need to be overwritten with GH_HOST
variable.
However, gh-poi will not work correctly unless the local git information in the current directory where it is executed and the remote GitHub information are the same, so overwriting with GH_REPO
may be problematic in some cases.
I've tried to override the hostname with the GH_HOST
environment variable. Does this work in your environment?
Please try it if you like:
gh ext remove poi
gh ext install seachicken/gh-poi --pin v0.11.0-pre0
@seachicken It works, thank you so much!
Thanks for checking! I've just released it.
You can remove the version pinning and install the latest version:
gh ext remove poi
gh ext install seachicken/gh-poi
Description
gh
supports setting the GitHub host and repo slug that should be used via theGH_HOST
andGH_REPO
environment variables. It would be great if gh-poi could add support for these.Additional context I interact with a GitHub Enterprise installation where the Git remote use a proxy, instead of the GitHub Enterprise domain. This makes
gh
fail as it expects it to also be the GitHub host. To overcome this we can set theGH_HOST
andGH_REPO
environment variables. Which works great withgh
itself.Unfortunately
gh-poi
fails as it doesn’t seem to read those environment values.Given a
remote.origin.url
ofhttps://git.enterprise.com/foo/bar
where GitHub Enterprise is hosted adgithub.enterprise.com
:Thank you!