src-d / sourced-ce

source{d} Community Edition (CE)
https://docs.sourced.tech/community-edition
GNU General Public License v3.0
185 stars 52 forks source link

Support for GitHub Enterprise #236

Open rpau opened 4 years ago

rpau commented 4 years ago

I could not find a way to setup the GitHub Enterprise API URL to load the corresponding repos/orgs instead of the public GitHub.

Is it possible? because as a user, I'd like to test source{d} with the repos of my team.

carlosms commented 4 years ago

No, this is not yet on the backlog roadmap.

Hopefully this can be added easily with a new option and https://godoc.org/github.com/google/go-github/github#NewEnterpriseClient, but we would also need to figure out how to test it properly.

rpau commented 4 years ago

Regarding the tests, I hope that this comment helps:

GHEs are old versions of the public GH, and the APIs are retro-compatible. The only bit that changes is the base URL: https://developer.github.com/enterprise/2.18/v3/#schema

se7entyse7en commented 4 years ago

@rpau shall we close this in favor of a proper epic/story?