mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-11 12:59:43 +00:00
fix: install commit-msg hook for local commitlint checks (#189)
This commit is contained in:
@@ -153,6 +153,11 @@ refactor: move inline YAML to fixtures for better test maintainability
|
||||
- Do NOT argue or explain why they might be useful
|
||||
- Just comply immediately and recommit without bylines
|
||||
|
||||
### 🚫 Commit Messages Over 100 Characters
|
||||
|
||||
Commitlint enforces `header-max-length: 100`. Keep commit message first lines under 100 characters.
|
||||
The `commit-msg` hook catches this locally if installed via `make pre-commit-install`.
|
||||
|
||||
### ✅ Prevention Mechanisms
|
||||
|
||||
**Before writing ANY code:**
|
||||
|
||||
1
Makefile
1
Makefile
@@ -139,6 +139,7 @@ pre-commit-install: ## Install pre-commit hooks
|
||||
@command -v pre-commit >/dev/null 2>&1 || \
|
||||
{ echo "Please install pre-commit or run 'make devtools'"; exit 1; }
|
||||
pre-commit install
|
||||
pre-commit install --hook-type commit-msg
|
||||
|
||||
pre-commit-update: ## Update pre-commit hooks to latest versions
|
||||
@echo "Updating pre-commit hooks..."
|
||||
|
||||
Reference in New Issue
Block a user