fix(hooks): accept the critic-fix commit type
This commit is contained in:
parent
28c89f3713
commit
7992c104a5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user