bucknatt_mitsu-plugin/.githooks/prepare-commit-msg
bucknatt a17601c3a5 Fix package-lock for CI npm ci on release builds
Pin TypeScript 5.8.3 and add legacy-peer-deps so npm ci matches
eslint-plugin-obsidianmd peer requirements in GitHub Actions.
2026-05-15 19:24:33 +02:00

4 lines
224 B
Bash
Executable file

#!/bin/sh
# Strips Cursor's automatic co-author trailer from commit messages.
# Enable once: git config core.hooksPath .githooks
grep -v '^Co-authored-by: Cursor <cursoragent@cursor.com>$' "$1" >"$1.tmp" && mv "$1.tmp" "$1"