Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // FirstReleaseError is returned when the changelog dir is for the first release of a minor version FirstReleaseError = errors.New("First Release of Minor") )
Functions ¶
func ChangelogDirForLatestRelease ¶
func ChangelogDirForLatestRelease[T namedEntry](files ...T) ( currentRelease *versionutils.Version, unreleasedVersion *versionutils.Version, err error)
ChangelogDirForLatestRelease will return the latest release of the current minor from a set of file entries that mimick our changelog structure. It will also return the currently in flight release and an error The error may be FirstReleaseError if the changelog dir is for the first release of a minor version
func GetLastReleaseOfCurrentBranch ¶
func GetLastReleaseOfCurrentBranch() (*versionutils.Version, error)
GetLastReleaseOfCurrentBranch returns the Version of the latest patch version for the current minor version To avoid querying the Github API, we use the changelog folder to determine this version Be aware, that while this has the benefit of not using an external API, we may hit issues where a release failed and therefore the returned version is not actually published.
Types ¶
This section is empty.