Package org.jreleaser.sdk.git
Class ChangelogGenerator
- java.lang.Object
-
- org.jreleaser.sdk.git.ChangelogGenerator
-
public class ChangelogGenerator extends java.lang.Object- Since:
- 0.1.0
- Author:
- Andres Almiray
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classChangelogGenerator.Commitstatic classChangelogGenerator.Tags
-
Constructor Summary
Constructors Constructor Description ChangelogGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Stringcategorize(ChangelogGenerator.Commit commit, org.jreleaser.model.Changelog changelog)protected booleancheckLabels(ChangelogGenerator.Commit commit, org.jreleaser.model.Changelog changelog)protected java.lang.StringcreateChangelog(org.jreleaser.model.JReleaserContext context)protected java.lang.StringformatChangelog(org.jreleaser.model.JReleaserContext context, org.jreleaser.model.Changelog changelog, java.lang.Iterable<org.eclipse.jgit.revwalk.RevCommit> commits, java.util.Comparator<org.eclipse.jgit.revwalk.RevCommit> revCommitComparator, java.lang.String lineSeparator)protected java.lang.StringformatCommit(org.eclipse.jgit.revwalk.RevCommit commit, java.lang.String commitsUrl, org.jreleaser.model.Changelog changelog, java.lang.String commitSeparator)static java.lang.Stringgenerate(org.jreleaser.model.JReleaserContext context)protected java.lang.Iterable<org.eclipse.jgit.revwalk.RevCommit>resolveCommits(org.eclipse.jgit.api.Git git, org.jreleaser.model.JReleaserContext context)ChangelogGenerator.TagsresolveTags(org.eclipse.jgit.api.Git git, org.jreleaser.model.JReleaserContext context)
-
-
-
Method Detail
-
createChangelog
protected java.lang.String createChangelog(org.jreleaser.model.JReleaserContext context) throws java.io.IOException- Throws:
java.io.IOException
-
formatCommit
protected java.lang.String formatCommit(org.eclipse.jgit.revwalk.RevCommit commit, java.lang.String commitsUrl, org.jreleaser.model.Changelog changelog, java.lang.String commitSeparator)
-
resolveTags
public ChangelogGenerator.Tags resolveTags(org.eclipse.jgit.api.Git git, org.jreleaser.model.JReleaserContext context) throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
resolveCommits
protected java.lang.Iterable<org.eclipse.jgit.revwalk.RevCommit> resolveCommits(org.eclipse.jgit.api.Git git, org.jreleaser.model.JReleaserContext context) throws org.eclipse.jgit.api.errors.GitAPIException, java.io.IOException- Throws:
org.eclipse.jgit.api.errors.GitAPIExceptionjava.io.IOException
-
formatChangelog
protected java.lang.String formatChangelog(org.jreleaser.model.JReleaserContext context, org.jreleaser.model.Changelog changelog, java.lang.Iterable<org.eclipse.jgit.revwalk.RevCommit> commits, java.util.Comparator<org.eclipse.jgit.revwalk.RevCommit> revCommitComparator, java.lang.String lineSeparator)
-
categorize
protected java.lang.String categorize(ChangelogGenerator.Commit commit, org.jreleaser.model.Changelog changelog)
-
checkLabels
protected boolean checkLabels(ChangelogGenerator.Commit commit, org.jreleaser.model.Changelog changelog)
-
generate
public static java.lang.String generate(org.jreleaser.model.JReleaserContext context) throws java.io.IOException- Throws:
java.io.IOException
-
-