Skip to content

Commit

Permalink
Show second line by using >= 1 instead of > 1 (#4251)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Franz <info@jonasfranz.software>
  • Loading branch information
jonasfranz authored and techknowlogick committed Jun 15, 2018
1 parent 3aafa04 commit 85414d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/templates/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func RenderCommitBody(msg, urlPrefix string, metas map[string]string) template.H

// IsMultilineCommitMessage checks to see if a commit message contains multiple lines.
func IsMultilineCommitMessage(msg string) bool {
return strings.Count(strings.TrimSpace(msg), "\n") > 1
return strings.Count(strings.TrimSpace(msg), "\n") >= 1
}

// Actioner describes an action
Expand Down

0 comments on commit 85414d8

Please sign in to comment.