Skip to content
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

Consider supporting GitHub Enterprise #11

Open
knpwrs opened this issue Jan 8, 2016 · 2 comments
Open

Consider supporting GitHub Enterprise #11

knpwrs opened this issue Jan 8, 2016 · 2 comments

Comments

@knpwrs
Copy link

knpwrs commented Jan 8, 2016

I work on a large international team using GitHub Enterprise. I think it would be cool to support that. We could probably do something like check if we are in a git working tree and if the origin is not github.com then to try the origin as a GitHub Enterprise URL, falling back to github.com.

The trickiest part would be authorization. Would it be reasonable to ask users to place access tokens somewhere?

@SamVerschueren
Copy link
Owner

Thanks for the suggestion.

In the background, it uses gh-got to make some API calls. So I guess when you export GITHUB_ENDPOINT as documented in gh-got, that part is covered.

The only thing that should be fixed is dev-time#L16 line. In order to retrieve the timezone, it downloads the repository with the latest contribution of the user. Is it as simple as https://git.myenterprise.com/some-repo.git? Not really familiar with GitHub Enterprise.

@knpwrs
Copy link
Author

knpwrs commented Jan 8, 2016

Yes, it's pretty much just github with your own hostname.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants