Skip to content

chore: add husky for professional commit message validation#113

Draft
vishwanath-acharya-cd wants to merge 4 commits into
clouddrove:masterfrom
vishwanath-acharya-cd:feature/add-husky-commit-hooks
Draft

chore: add husky for professional commit message validation#113
vishwanath-acharya-cd wants to merge 4 commits into
clouddrove:masterfrom
vishwanath-acharya-cd:feature/add-husky-commit-hooks

Conversation

@vishwanath-acharya-cd

Copy link
Copy Markdown

Added Husky and commitlint to enforce conventional commit messages.

Changes

  • Added Husky for Git hooks management
  • Implemented commitlint for commit message validation
  • Added commit-msg hook to validate commit format
  • Updated package.json with required dependencies and scripts
  • Added documentation for commit message standards

Benefits

  • Enforces consistent commit message format across the project
  • Improves project maintainability and git history
  • Follows conventional commits specification
  • Prevents invalid commit messages from being pushed

Testing

  • Tested with invalid commit messages (properly rejected)
  • Tested with valid conventional commits (properly accepted)
  • All hooks working as expected

Commit Message Format

Types: feat, fix, docs, style, refactor, test, chore, ci, perf, revert

Examples

git commit -m "feat: add new feature"
git commit -m "fix: resolve bug"
git commit -m "chore: update dependencies"

--head vishwanath-acharya-cd:feature/add-husky-commit-hooks
--base master

@hahirwar-cd
hahirwar-cd marked this pull request as draft July 1, 2026 15:09
- Added husky for git hooks
- Added commitlint for commit message validation
- Added commit-msg hook for conventional commits
- Updated package.json with required scripts
@vishwanath-acharya-cd
vishwanath-acharya-cd force-pushed the feature/add-husky-commit-hooks branch from 719e201 to faaebf8 Compare July 6, 2026 17:33
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