Skip to content

Commit

Permalink
fix(CoAuthor)!: Third time the charm
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Test

Co-authored-by: Henri Remonen <81435393+HRemonen@users.noreply.github.com>
Co-authored-by: Henri Remonen <henri@remonen.fi>
  • Loading branch information
HRemonen and HRemonen committed Sep 9, 2023
1 parent 0ab9231 commit 23b89a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file modified commitsense
Binary file not shown.
6 changes: 2 additions & 4 deletions pkg/commit/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ func createCommitMessage(commitInfo Info) string {
commitMessage += "\n\n" + commitInfo.CommitBody
}

if commitInfo.IsBreakingChange || commitInfo.IsCoAuthored {
commitMessage += "\n"
}

if commitInfo.IsBreakingChange {
commitMessage += "\n"
commitMessage += "\nBREAKING CHANGE: " + commitInfo.BreakingChangeDescription
}

if commitInfo.IsCoAuthored {
commitMessage += "\n"
for _, coauth := range commitInfo.CoAuthors {
commitMessage += "\nCo-authored-by: " + coauth
}
Expand Down

0 comments on commit 23b89a9

Please sign in to comment.