[Sprint 3] feat: Implement commit message enforcement hook for git-flow #225
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?
Description
Implement a
PreToolUsehook that validates all git commit messages follow the conventional commit format before they are executed. This ensures commit message consistency regardless of whether the user uses the/commitcommand or raw git commands.Implementation
Wiki: Sprint 3: Hooks Implementation
Plugin:
plugins/git-flow/Technical Details
Hook Configuration
PreToolUseBash(detectgit commitcommands)Commit Format (Conventional Commits)
Valid types:
feat,fix,docs,style,refactor,test,chore,perf,ci,buildFiles to Create/Modify
Acceptance Criteria
hooks/hooks.json(NOT plugin.json)Technical Notes
CRITICAL: Hooks must be in
hooks/hooks.json, NOT inline in plugin.json.