Skip to content

Commit

Permalink
fix: deduplicate commit messages within a version.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Sep 3, 2023
1 parent 5700e11 commit a9cb006
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vcs/commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ func fetchCommitsBetween(

appendCurrentTag := func() {
if len(commitMessages) > 0 {
if unique {
commitMessages = stringutil.Unique(commitMessages)
}

tag := TagCommits{
TagMeta: currentTag,
Commits: commitMessages,
Expand Down Expand Up @@ -189,9 +193,6 @@ func fetchCommitsBetween(
// final tag
appendCurrentTag()

if unique {
commitMessages = stringutil.Unique(commitMessages)
}
return &tagCommits, nil
}

Expand Down

0 comments on commit a9cb006

Please sign in to comment.