chelnak / gh-changelog

A gh cli extension that will make your changelogs ✨
MIT License
114 stars 4 forks source link

Handle Pre-Releases #126

Closed chelnak closed 1 year ago

chelnak commented 1 year ago

Prior to this change, the generator could not handle pre-releases.

This change updates utils.VersionIsGreaterThan so that it uses compare vs the previous constraint.

Comparse will take in to consideration pre-releases where as constraints did not.

https://pkg.go.dev/github.com/Masterminds/semver/v3#Version.Compare