Skip to content

Commit

Permalink
ci: add more hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowan Gudmundsson committed Oct 26, 2023
1 parent 60a002d commit a5003a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .husky.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ pre-commit = [
"revive --config=.revive.toml --formatter=stylish",
"husky lint-staged",
]

commit-msg = ["husky lint-commit"]

[lint-staged]
"*.go" = ["goimports -l -w", "gofmt -l -w"]

[lint-commit]
types = "^(feat|fix|chore|ci|docs|perf|refactor|revert|style|test)$"
header = "^(?P<type>\\w+)(\\((?P<scope>[\\w/.-]+)\\))?(?P<breaking>!)?:( +)?(?P<header>.+)"

0 comments on commit a5003a6

Please sign in to comment.