public static class ConventionalCommit.Builder extends Object
| Constructor and Description |
|---|
Builder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ConventionalCommit.Builder |
body(String body)
Message body.
|
ConventionalCommit |
build()
Build the conventional commit with the given values.
|
ConventionalCommit.Builder |
description(String description)
Message description.
|
ConventionalCommit.Builder |
exclamation(boolean exclamation)
Message with exclamation mark.
|
ConventionalCommit.Builder |
footer(String key,
String value)
Add footer to message.
|
ConventionalCommit.Builder |
scope(String scope)
Message scope.
|
ConventionalCommit.Builder |
type(String type)
Message type.
|
public ConventionalCommit.Builder type(String type)
type - Message typepublic ConventionalCommit.Builder scope(String scope)
scope - Message scopepublic ConventionalCommit.Builder exclamation(boolean exclamation)
exclamation - true to set exclamation mark in message, false otherwisepublic ConventionalCommit.Builder description(String description)
description - Message descriptionpublic ConventionalCommit.Builder body(String body)
body - Message bodypublic ConventionalCommit.Builder footer(String key, String value)
key - Key of the footer entryvalue - Value of the footer entrypublic ConventionalCommit build()
Copyright © 2022. All rights reserved.