Class ChangelogGenerator


  • public class ChangelogGenerator
    extends java.lang.Object
    Since:
    0.1.0
    Author:
    Andres Almiray
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String categorize​(ChangelogGenerator.Commit commit, org.jreleaser.model.Changelog changelog)  
      protected boolean checkLabels​(ChangelogGenerator.Commit commit, org.jreleaser.model.Changelog changelog)  
      protected java.lang.String createChangelog​(org.jreleaser.model.JReleaserContext context)  
      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)  
      protected java.lang.String formatCommit​(org.eclipse.jgit.revwalk.RevCommit commit, java.lang.String commitsUrl, org.jreleaser.model.Changelog changelog, java.lang.String commitSeparator)  
      static java.lang.String generate​(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.Tags resolveTags​(org.eclipse.jgit.api.Git git, org.jreleaser.model.JReleaserContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChangelogGenerator

        public ChangelogGenerator()
    • 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.GitAPIException
        java.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