git-good-commit icon indicating copy to clipboard operation
git-good-commit copied to clipboard

hook: Allow tag:/[tag]/{tag} prefixes in subject

Open ahmubashshir opened this issue 3 years ago • 0 comments

This hook didn't detect cap'd subject when prefixed with tag:/[tag]/{tag} eg.

tag(scope): Subject cap check failed
[tag] Subject cap check failed
{tag} Subject cap check failed

@(+([[:alnum:]])?(\(+([[:alnum:]])\)):|\[+([[:alnum:][:punct:]])\]|\{+([[:alnum:][:punct:]])\}|squash\!) matches the prefixes and removes it from subject line before checking.

ahmubashshir avatar Aug 03 '21 06:08 ahmubashshir