From 6ac7c2f640fbcf85419fb9914b8bdcccd71570c0 Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Sun, 17 Feb 2019 22:59:46 -0800 Subject: [PATCH] fix: ensure the imperative check is against lowercase word (#112) Signed-off-by: Andrew Rynhard --- internal/policy/commit/commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/policy/commit/commit.go b/internal/policy/commit/commit.go index 3e855987..91629aeb 100644 --- a/internal/policy/commit/commit.go +++ b/internal/policy/commit/commit.go @@ -159,7 +159,7 @@ func ValidateGPGSign(report *policy.Report, g *git.Git) { // ValidateImperative checks the commit message for a GPG signature. func ValidateImperative(report *policy.Report, word string) { - doc, err := prose.NewDocument("I " + word) + doc, err := prose.NewDocument("I " + strings.ToLower(word)) if err != nil { report.Errors = append(report.Errors, errors.Errorf("Failed to create document: %v", err)) }