[TOOLING] Build commit message linter enforcing conventional commits #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Create a git hook and standalone linter that enforces conventional commit message format across all Bezalel's repositories. Consistent commit messages make history readable and enable automated changelog generation.
Motivation
Commit messages are the narrative of a project. Sloppy messages like 'fix stuff' or 'update' make it impossible to understand what happened and why. Conventional commits bring structure and machine-readability.
Acceptance Criteria
scripts/commit-lint.shthat validates commit messages against this format:feat,fix,docs,style,refactor,test,chore,ci,health,journal,craft,skillscripts/hooks/commit-msgthat runs the linterscripts/install-hooks.shthat symlinks hooks into any repo's.git/hooks/--fixmode that suggests corrections for common mistakesImplementation Notes
--reportflag that analyzes recent commit history for violationsDefinition of Done
All commits to forge-log and other Bezalel repos are validated against conventional commit format. Bad messages are rejected with helpful guidance.