Files
airship/.husky/commit-msg
T
Nayan c7da399cf3 chore(hooks): enforce conventional commits and the branch policy
commitlint has been sitting in the repo wired to nothing. Hook it up: commit-msg lints the
message, pre-commit formats staged files and blocks direct commits to main,
pre-push blocks pushing it.

The test suite deliberately does not run in pre-commit. It runs in checks.yml on
every PR and locally via `make preflight`, and a full `turbo run test` on every
commit would tax exactly the fast checkpoint commits this repo lives on while
catching nothing the PR gate would not.

A hook is only ever a courtesy — it can be skipped with --no-verify — so CI runs
the same rules over a PR's commits.
2026-07-25 11:58:00 +05:30

7 lines
337 B
Bash
Executable File

#!/bin/sh
# Conventional Commits, enforced. commitlint.config.ts has been in this repo
# since the beginning wired to nothing, which is why the log is a wall of
# "checkpoint". checks.yml runs the same rule over a PR's commits, because a
# hook is only ever a courtesy — it can be skipped with --no-verify.
pnpm commitlint --edit "$1"