Class Commit
- java.lang.Object
-
- net.videki.semver.cc.release.common.Commit
-
public class Commit extends Object
SCM commit representation.- Author:
- rossillo
-
-
Constructor Summary
Constructors Constructor Description Commit(CommitAdapter commit)Constructor to initialize the commit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ConventionalCommitType>getCommitType()Returns the commit type.booleanisConventional()Returns true if this commit is written in conventional commit style; false otherwise.
-
-
-
Constructor Detail
-
Commit
public Commit(CommitAdapter commit)
Constructor to initialize the commit.- Parameters:
commit- the SCM-specific commit.
-
-
Method Detail
-
isConventional
public boolean isConventional()
Returns true if this commit is written in conventional commit style; false otherwise.- Returns:
- true, if the commit is conventional commits compliant (matches the pattern).
-
getCommitType
public Optional<ConventionalCommitType> getCommitType()
Returns the commit type.- Returns:
- the commit type.
-
-