fix: allow build: in the commit-msg type list

Standard conventional type, and its absence rejected a legitimate lockfile
commit during task 01.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Marcos Paulo
2026-09-05 02:12:34 +00:00
parent f5631acb2c
commit eef1d9a86b
+2 -2
View File
@@ -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 '<type>: <subject>' (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