diff --git a/.husky/commit-msg b/.husky/commit-msg index ea4a11a..d19d816 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -13,9 +13,9 @@ case "$first_line" in "Merge "*|"Revert "*) exit 0 ;; esac -if ! printf '%s' "$first_line" | grep -qE '^(feat|fix|docs|refactor|chore|test|style|ci|perf)(\([a-z0-9 -]+\))?: .{1,}$'; then +if ! printf '%s' "$first_line" | grep -qE '^(feat|fix|docs|refactor|chore|test|style|ci|perf|build)(\([a-z0-9 -]+\))?: .{1,}$'; then echo "commit-msg: subject must be ': ' (lowercase type)." >&2 - echo " types: feat fix docs refactor chore test style ci perf" >&2 + echo " types: feat fix docs refactor chore test style ci perf build" >&2 echo " got: $first_line" >&2 exit 1 fi