Skip to content

Commit

Permalink
feat(changelog): Do not include merge commits in the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 6, 2022
1 parent d6b9e6a commit 903b73d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ private String createChangelog(JReleaserContext context) throws IOException {
lineSeparator() +
StreamSupport.stream(commits.spliterator(), false)
.sorted(revCommitComparator)
// Do not include merge commits
.filter(commit -> commit.getParentCount() < 2)
.map(commit -> formatCommit(commit, commitsUrl, changelog, commitSeparator))
.collect(Collectors.joining(commitSeparator));
} catch (GitAPIException e) {
Expand Down

0 comments on commit 903b73d

Please sign in to comment.