Reads a commit message file and validates it against the project's Conventional Commits configuration.
Designed to be invoked from a git commit-msg hook:
# .githooks/commit-msg
#!/usr/bin/env sh
exec mix releaser.check_commit_msg "$1"Exit codes
0— valid commit message1— invalid; a human-readable error is printed to stderr
Configuration
Reads :commits from mix.exs. The feature is only active when
commits: [enabled: true] is configured. When disabled, this task
exits 0 silently (so the hook is a no-op in projects that haven't
opted in).