You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When thinking about GHE compatibility #273, we should address the different places where we generate URLs within CLI and ensure that we are respecting the current hostname that might be different from github.com.
repo clone, repo fork, pr create, and other commands may generate git remote URLs. These URLs should not be hardcoded to github.com, but should respect whathever is the current or selected hostname.
issue/pr/repo view --web and other commands may generate URLs for viewing in the browser. Same as above.
@vilmibm A support for any GitHub hosts will in theory be possible, even the one running on github.localhost, but there are some differences between GHE and localhost: namely that our OAuth app probably won't be registered in localhost and that the dev API server runs on http://api.github.localhost whereas GHE exposes API endpoints under https://HOSTNAME/api/.
But I also think supporting dev environments would be cool, so let's try supporting it!
Activity
vilmibm commentedon Jun 23, 2020
A fellow hubber pointed out it would be nice to have
ghtalk to a dev environment which I agree sounds really cool.I'm pretty sure this work will enable that without any change in course; is that your understanding too, @mislav ?
mislav commentedon Jun 25, 2020
@vilmibm A support for any GitHub hosts will in theory be possible, even the one running on
github.localhost, but there are some differences between GHE and localhost: namely that our OAuth app probably won't be registered in localhost and that the dev API server runs onhttp://api.github.localhostwhereas GHE exposes API endpoints underhttps://HOSTNAME/api/.But I also think supporting dev environments would be cool, so let's try supporting it!