[Sprint 3] feat: Implement branch name validation hook for git-flow #226
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 branch names follow the project naming conventions when creating new branches.Implementation
Wiki: Sprint 3: Hooks Implementation
Plugin:
plugins/git-flow/Technical Details
Hook Configuration
PreToolUseBash(detectgit checkout -b,git switch -c)Branch Naming Rules
type/descriptionfeat,fix,docs,refactor,test,chore,hotfix,releaseFiles 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.