Klasse ChangelogFormat
java.lang.Object
com.github.koraktor.mavanagaiata.mojo.ChangelogFormat
- Bekannte direkte Unterklassen:
ChangelogDefaultFormat
Base class for formatting changelog output
Individual properties can be overridden in the configuration of the
changelog
mojo.
- Autor:
- Sebastian Staudt
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
-
Feldübersicht
Modifizierer und TypFeldBeschreibung(Package privat) String
(Package privat) String
The format for the branch line(Package privat) String
The format for the link to the history from the last tag to the current branch on GitHub(Package privat) String
The format for the link to the branch history on GitHub(Package privat) String
The string to prepend to every commit message(Package privat) Boolean
(Package privat) String
(Package privat) SimpleDateFormat
(Package privat) Boolean
Whether to escape HTML(Package privat) String
The header to print above the changelog(Package privat) PrintStream
(Package privat) String
THe separator to print between different sections of the changelog(Package privat) String
The format for a tag line(Package privat) String
The format for the link to the tag history on GitHub -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) ChangelogFormat
apply
(ChangelogFormat format) Create a new format instance using this instance as base and override with (non-null
) properties of the given format(Package privat) void
enableCreateLinks
(String baseUrl) Enable creation of links using the given base URL(Package privat) void
prepare()
Prepare the format strings for use(Package privat) void
printBranch
(String branchName) Print a section header for a branch(Package privat) void
printCommit
(GitCommit currentCommit) Print a single line for a commit(Package privat) void
printCompareLink
(String currentRef, String lastRef, boolean isBranch) Generates a link to the GitHub compare / commits view and inserts it into the changelog(Package privat) void
Print a header for the changelog(Package privat) void
Print a separator between sections(Package privat) void
Print a section header for a tag
-
Felddetails
-
baseUrl
String baseUrl -
branch
String branchThe format for the branch line -
branchLink
String branchLinkThe format for the link to the history from the last tag to the current branch on GitHub -
branchOnlyLink
String branchOnlyLinkThe format for the link to the branch history on GitHub -
dateFormatter
SimpleDateFormat dateFormatter -
dateFormat
String dateFormat -
commitPrefix
String commitPrefixThe string to prepend to every commit message -
createLinks
Boolean createLinks -
escapeHtml
Boolean escapeHtmlWhether to escape HTML -
header
String headerThe header to print above the changelog -
printStream
PrintStream printStream -
separator
String separatorTHe separator to print between different sections of the changelog -
tag
String tagThe format for a tag line -
tagLink
String tagLinkThe format for the link to the tag history on GitHub
-
-
Konstruktordetails
-
ChangelogFormat
public ChangelogFormat()
-
-
Methodendetails
-
apply
Create a new format instance using this instance as base and override with (non-null
) properties of the given format- Parameter:
format
- Format to apply settings from- Gibt zurück:
- A new format with applied settings
-
enableCreateLinks
Enable creation of links using the given base URL- Parameter:
baseUrl
- The base URL to link to
-
prepare
void prepare()Prepare the format strings for use -
printBranch
Print a section header for a branch- Parameter:
branchName
- The name of the branch
-
printCommit
Print a single line for a commit- Parameter:
currentCommit
- The commit to print
-
printCompareLink
Generates a link to the GitHub compare / commits view and inserts it into the changelogIf no current ref is provided, the generated text will link to the commits view, listing all commits of the latest tag or the whole branch. Otherwise the text will link to the compare view, listing all commits that are in the current ref, but not in the last one.
- Parameter:
currentRef
- The current tag or branch in the changeloglastRef
- The last tag or branch in the changelogisBranch
- Whether the current ref is a branch
-
printHeader
void printHeader()Print a header for the changelog -
printSeparator
void printSeparator()Print a separator between sections -
printTag
Print a section header for a tag- Parameter:
currentTag
- The tag
-