NexisChat Docs
ActionsSetup

Husky Pre-push & Commitlint

Enforce local checks before pushing and Conventional Commits formatting.

Husky hooks ensure code quality and commit message formatting locally.

Hooks

  • commit-msg: npx --no -- commitlint --edit $1
  • pre-push: runs npm run pre-push, which invokes the pre-push validation script from @repo/scripts package

Pre-push validation

  • Change detection for workspaces based on recent diffs
  • Runs: turbo run typecheck|lint|build filtered to changed workspaces
  • Runs Prettier check across the repo
  • Blocks the push on failures, prints actionable output

Commitlint

  • Enforces Conventional Commits; supports scopes for apps/packages and multi-line messages
  • Examples:
    • feat(server): add rate limiter
    • fix(ui): correct button focus state
    • chore: update dependencies