Class CommitMessageParser
java.lang.Object
io.github.joke.conventionalversion.calc.CommitMessageParser
Extracts the version-relevant facts from a raw commit message.
Only what the calculation needs is parsed: a description, a footer map and commit references would all be dead weight in a component that never renders a changelog.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<SemanticVersion> findReleaseAs(String message) The last footer in the message wins, matching release-please's handling of repeated overrides.protected Stringprotected booleanisBreaking(@Nullable String breakingMarker, String message) Whether the commit declares a breaking change, by either spelling the specification allows.
-
Constructor Details
-
CommitMessageParser
public CommitMessageParser()
-
-
Method Details
-
parse
-
headerOf
-
isBreaking
-
findReleaseAs
The last footer in the message wins, matching release-please's handling of repeated overrides.
-