Documentation
¶
Overview ¶
Package changelog reads a CHANGELOG.md in the Keep a Changelog layout that git-cliff produces from Conventional Commits, so the applications can show "what's new" from the same file the release page uses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Release ¶
type Release struct {
Version string // "1.2.0" or "Unreleased"
Date time.Time
Unreleased bool
Sections []Section
}
Release is one "##" block.
func Latest ¶
Latest returns the n newest releases. Released versions come first; "Unreleased" work is shown only when nothing has been released.
func Parse ¶
Parse reads the releases of a changelog, newest first as written. Anything before the first release heading is ignored.
func Since ¶
Since returns the releases written before version in the file, i.e. the newer ones, including unreleased work. ok is false when version is not in the changelog.