Class ChangelogReader
java.lang.Object
io.github.joke.conventionalversion.calc.ChangelogReader
Reads the last released version out of the changelog release-please maintains.
The changelog rather than the tags is the base, because release-please's notion of "released" is a GitHub Release it created, not a git ref. A tag made by hand is invisible to it, and a tag-reading plugin would disagree with release-please exactly when someone has tagged manually.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindLatestRelease(String changelog) The topmost heading is the most recent release.
-
Constructor Details
-
ChangelogReader
public ChangelogReader()
-
-
Method Details
-
findLatestRelease
The topmost heading is the most recent release. Returns empty when the changelog is absent or contains no parseable heading, which is the "never released" case rather than an error.
-