public class ConventionalCommitParser extends Object
Conventional commit message parser.
Based on specification Conventional Commits v1.0.0.| Modifier and Type | Field and Description |
|---|---|
static List<String> |
RECOMMENDED_TYPES
Recommended types in Conventional Commits v1.0.0:
fix, feat, build, chore, ci, docs, style,
refactor, perf or test |
| Constructor and Description |
|---|
ConventionalCommitParser()
Default constructor with types defined with
RECOMMENDED_TYPES. |
ConventionalCommitParser(String... types)
Constructor with allowed types.
|
| Modifier and Type | Method and Description |
|---|---|
ConventionalCommit |
parse(String fullCommitMessage)
Parse raw conventional commit message.
|
public static final List<String> RECOMMENDED_TYPES
fix, feat, build, chore, ci, docs, style,
refactor, perf or testpublic ConventionalCommitParser()
RECOMMENDED_TYPES.public ConventionalCommitParser(String... types)
types - List of allowed typespublic ConventionalCommit parse(String fullCommitMessage)
fullCommitMessage - Raw conventional commit messageCopyright © 2022. All rights reserved.