mszostok / version

🧬 Pure DNA of your CLI!
https://version.szostok.io
MIT License
97 stars 7 forks source link

Add support for More SCM releases #80

Open Kamsiy opened 1 year ago

Kamsiy commented 1 year ago

Description Currently the only supported source code management tool is the public GitHub endpoint. https://github.com/mszostok/version/blob/c6a76403cae4842ae305b1d6439b08aae22c3c28/upgrade/github/head_fetch.go#L14

This proposal is to support upgrade notice for New Releases on GitHub enterprise, public Gitlab and GitLab Enterprise

Reasons This would expand support to Gitlab & Github enterprise projects

mszostok commented 1 year ago

Hi @Kamsiy

That makes sens to me 👍

The only restriction would be that also the GitHub enterprise repository needs to be publically available 🤔 not sure if this is a common scenario.

Kamsiy commented 1 year ago

if its Github/Gitlab enterprise, it would be an internal & private release

Kamsiy commented 1 year ago

This means, if its on GitHub/Gitlab enterprise or a private repo, the version package would need a GitHub token to access the release (assuming the user has permission to that repo).

goreleaser has a similar customization for releasing projects on Github Enterprise. https://goreleaser.com/scm/github/?h=github#github-enterprise