Skip to content

Commit

Permalink
chore: Ensure commit messages start with a capital letter
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 29, 2024
1 parent ee0c3a5 commit dd2960f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmds/lint-commit-messages/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
)

var commitRx = regexp.MustCompile(`\A([0-9a-f]{40}) (chore(?:\([\w\-]+\))?|docs|feat|fix): `)
var commitRx = regexp.MustCompile(`\A([0-9a-f]{40}) (chore(?:\([\w\-]+\))?|docs|feat|fix): [A-Z]`)

func run() error {
args := append([]string{"log", "--format=oneline"}, os.Args[1:]...)
Expand Down

0 comments on commit dd2960f

Please sign in to comment.