Skip to content

Commit

Permalink
fix: ensure the imperative check is against lowercase word (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Rynhard <[email protected]>
  • Loading branch information
andrewrynhard authored Feb 18, 2019
1 parent fd6ad6c commit 6ac7c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/policy/commit/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 6ac7c2f

Please sign in to comment.