git-good-commit
git-good-commit copied to clipboard
hook: Allow tag:/[tag]/{tag} prefixes in subject
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.