From 71630969cdf58fdbca8d1645ee26c1fc30c5fe50 Mon Sep 17 00:00:00 2001 From: hau Date: Wed, 11 Nov 2020 10:28:05 +0700 Subject: [PATCH] feat(convention): make sure header commit is trimmed space --- pkg/convention/commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/convention/commit.go b/pkg/convention/commit.go index 739b327..2a3b2fe 100644 --- a/pkg/convention/commit.go +++ b/pkg/convention/commit.go @@ -30,7 +30,7 @@ func NewCommit(c git.Commit) (result Commit, err error) { return } - header := messages[0] + header := strings.TrimSpace(messages[0]) if err = parseHeader(header, &result); err != nil { return }