Skip to content

Commit

Permalink
chore: Add commit message lint exception for Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 1, 2025
1 parent 3f6897d commit bde9ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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): [A-Z]`)
var commitRx = regexp.MustCompile(`\A([0-9a-f]{40}) (chore(?:\([\w\-]+\))?|docs|feat|fix): ([A-Z]|bump)`)

func run() error {
args := append([]string{"log", "--format=oneline"}, os.Args[1:]...)
Expand Down
1 change: 1 addition & 0 deletions internal/cmds/lint-commit-messages/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func TestCommitRx(t *testing.T) {
for s, match := range map[string]bool{
"chore(deps): Text": true,
"chore(deps-dev): Text": true,
"chore(deps): bump": true,
"chore: Text": true,
"docs: Text": true,
"feat: Text": true,
Expand Down

0 comments on commit bde9ae7

Please sign in to comment.