diff --git a/.githooks/commit-msg b/.githooks/commit-msg index 4c513a4..ee66e50 100755 --- a/.githooks/commit-msg +++ b/.githooks/commit-msg @@ -136,9 +136,9 @@ case "$SUBJECT" in printf ' Rule: commits.md Rule 1\n' >&2 FAIL=1 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 ' 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 FAIL=1 fi