Closed annettejanewilson closed 6 months ago
I don't have access to an enterprise instance, so there's no support for that yet. It is however prepared and shouldn't be too hard to fix.
I'll request a developer license and have a look.
I don't have a developer license yet, but the recent changes might already fix it for the most part. If you want to test it you can build a development version.
Still can't test it in depth, but I expect this to work now. Feel free to reopen if not.
Current Behavior
I have
GH_HOST
set to an internal Github Enterprise instance. (E.g.github.companyname.example
) I have rungh auth login
to authenticate to the same internal Github Enterprise instance. I am not authenticated to Github.com. When I try to tab complete:I get
Upon inspection, I can see that Carapace is running a command starting with
It appears that Carapace is querying github.com instead of my configured Github Enterprise instance, resulting in failure.
Expected Behavior
Carapace should make the request to the same host that gh would be connecting to. As I understand it, that is:
GH_HOST
variable is set and not empty, the hostname it specifies.gh auth status
), it appears to use that one.Again, as far as I can tell, simply not specifying
--hostname
in the invocation ofgh api
should to do the right thing. I see the following behaviour:Steps To Reproduce
gh
if it's not already installed.gh auth logout
and log out of any accounts on github.com.gh auth login
and log in to a Github Enterprise instance. (I'm sorry, I don't know how to demonstrate this without one!)export GH_HOST=github.mycompany.example
(substitute your Github Enterprise hostname).gh repo clone Annet
(substitute a prefix of your own account name).Version
1.0.0
OS
Shell
Anything else?
No response