-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for GH_HOST
and GH_REPO
environment variables
#125
Comments
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. |
I've tried to override the hostname with the 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:
|
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!
The text was updated successfully, but these errors were encountered: