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

Enable this to work with GitHub Enterprise #184

Closed
clancychilds opened this issue Apr 30, 2015 · 2 comments
Closed

Enable this to work with GitHub Enterprise #184

clancychilds opened this issue Apr 30, 2015 · 2 comments

Comments

@clancychilds
Copy link

Putting this out there without much knowledge about GitHub Enterprise APIs.

Our organization uses GitHub Enterprise hosted internally. We would love to integrate Gerrit, which uses this package, with it, but the GitHub API in here is currently a static final string: https://github.com/kohsuke/github-api/blob/master/src/main/java/org/kohsuke/github/GitHub.java#L558

Would be very nice if there was a way to use this with the apis for an internal Enterprise instance of github.

@KostyaSha
Copy link
Contributor

Use GitHubBuilder and specify endpoint https://github.com/kohsuke/github-api/blob/master/src/main/java/org/kohsuke/github/GitHubBuilder.java#L155
If you read the code you will see static GITHUB_URL used only as fallback.

@clancychilds
Copy link
Author

Ah. Thank you. Sorry for the confusion on my part. It actually looks like the gerrit integration requirements are more complex than simply picking the right endpoints.

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