Skip to content

WEB-81 Add commit message hook to enforce "WEB-XX" prefix#96

Merged
wlenig merged 5 commits into
mainfrom
WEB-81
Mar 17, 2026
Merged

WEB-81 Add commit message hook to enforce "WEB-XX" prefix#96
wlenig merged 5 commits into
mainfrom
WEB-81

Conversation

@wlenig

@wlenig wlenig commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator
  • Add husky, a standard and lightweight dependency that auto sets up git hooks
    • Without husky, each dev would need to manually copy hooks into their local .git/hooks/ directory — which isn't tracked by git and can't be shared through the repo
    • With husky, hooks are setup as part of npm install
  • Moved appropriate config files, directories to root
    • Husky expects git root and project root to be the same directory -- this is actually standard project layout for node projects
      • Upon review, I realized the project layout was not according to standard
  • Added commit message hook to ensure commits begin with "WEB-[0-9]+"

@wlenig
wlenig merged commit 69d8085 into main Mar 17, 2026
1 check passed
@wlenig
wlenig deleted the WEB-81 branch March 17, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant