checkCommitMessage

Validate commit message prefix for the commit-msg pre-commit hook.

The first non-empty, non-comment line in the commit message must start with [#<number>].

checkCommitMessage.get_commit_subject(commit_message_path: Path) str[source]

Return the first non-empty, non-comment line of a commit message.

checkCommitMessage.main() int[source]

Run the commit-message prefix validation.