scikit-build / github-release

Manage github releases from the command line
Apache License 2.0
56 stars 22 forks source link

support for non public github URL #55

Closed furlongm closed 5 years ago

furlongm commented 5 years ago

It would be a a good feature to be able to specify a private github URL rather than hardcoding the URL. The default should still be github.com

jcfr commented 5 years ago

Thanks for the suggestion

Are you talking about this URL:

https://github.com/j0057/github-release/blob/0080628236071800ac88b2f596a66bf056cf7a67/github_release.py#L24

And by "private" to you mean the case of on premise GitHub deployment ? Or private repo ? (Private repo hosted on github.com should already be supported)

furlongm commented 5 years ago

By private I mean on-premise GitHub deployment. It currently works but I need to manually change L24. An option would be great.

jcfr commented 5 years ago

Makes sense. If you would like to contribute the change, I can help move it forward.

Here are few possible approaches:

GITHUB_API = os.environ.get("GITHUB_API_URL", "https://api.github.com")

https://github.com/j0057/github-release/blob/0080628236071800ac88b2f596a66bf056cf7a67/github_release.py#L174-L175