-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Changeable github URL? #72
Comments
This extension currently does work fine with GitHub Enterprise and work is ongoing to make that integration more seamless. |
@dhirschfeld Sorry, I don't follow. How can I point the extension to git.myserver.com instead of github.com? |
@deppfx - currently, if you install the server (python) extension you can configure the c.GitHubConfig.api_url = 'https://git.myserver.com/api/v3' To get the Open in GitHub button to correctly point to your GitHub Enterprise instance you also have to set the "baseUrl": "https://git.myserver.com" Note: I'm currently exploring ways to more seamlessly support GitHub Enterprise deployments so it's possible this interface may change. |
If you decide to go with the access token approach, add the following to the notebook configuration file: c.GitHubConfig.api_url = 'https://<your_ghe_domain>/api/v3/'
c.GitHubConfig.allow_client_side_access_token = True Without the second line, the server will only try This was pretty confusing, especially after we noticed the the octocat icon to the right of the user or org takes you to your local ghe in a new browser tab (at least in Chrome). I would recommend adding instructions about this to README.md. Perhaps that would be sufficient to close the issue? |
Thanks @fm75, I would welcome PRs to make this less confusing! Note that I am not using GHE, so my ability to test on such setups is pretty limited. |
@ian-r-rose - I have been looking a little deeper at this. It is not clear to me why there is a server extensionIt seems like if all the pieces were put into the front-end, in particular the ability to set the api url, the server piece does not seem to add any value. Perhaps there is some history that I am missing here. Going to github is fine for a defaultGoing to github when trying to modify the extension to use a GHE server seems like a bad idea, but it either does that or returns 403 or 404 depending on what is wrong. There seems to be a preference for driving from configuration fileWhy should we prefer to alter the |
Just trying to get this work with my GitHub enterprise account. I have done the following:
"baseUrl": "https://github..ca" Unfortunately, my username is still 'not found' (it was created within GHE. Clicking on the GitHub icon within the extension does take me to the correct GHE page... Any other steps I'm missing? ) |
@firasm i know it has been a while but any update? I am trying exactly what you have above and it is not working for me either. |
Nope, wasn't able to get it to work unfortunately! |
Can this integration be used with a private github URL instead of the actual github.com? In other words, can the URL be configurable (leaving the default to github.com)?
The text was updated successfully, but these errors were encountered: