fix(hooks): accept the critic-fix commit type

This commit is contained in:
Mihaela M 2026-11-03 12:36:31 +01:00
parent 28c89f3713
commit 7992c104a5

View File

@ -136,9 +136,9 @@ case "$SUBJECT" in
printf ' Rule: commits.md Rule 1\n' >&2 printf ' Rule: commits.md Rule 1\n' >&2
FAIL=1 FAIL=1
fi fi
if ! printf '%s' "$SUBJECT" | grep -qE '^(feat|fix|docs|style|refactor|perf|test|build|ci|chore)(\([a-z0-9._-]+\))?!?: .+'; then if ! printf '%s' "$SUBJECT" | grep -qE '^(feat|fix|critic-fix|docs|style|refactor|perf|test|build|ci|chore)(\([a-z0-9._-]+\))?!?: .+'; then
printf 'commit-msg: subject must be Conventional Commits: "type(scope): summary".\n' >&2 printf 'commit-msg: subject must be Conventional Commits: "type(scope): summary".\n' >&2
printf ' Allowed types: feat fix docs style refactor perf test build ci chore\n' >&2 printf ' Allowed types: feat fix critic-fix docs style refactor perf test build ci chore\n' >&2
printf ' Rule: commits.md Rule 1, Rule 2\n' >&2 printf ' Rule: commits.md Rule 1, Rule 2\n' >&2
FAIL=1 FAIL=1
fi fi