mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-05 16:28:17 +00:00
9 lines
303 B
Plaintext
9 lines
303 B
Plaintext
npx --no-install commitlint --edit "$1"
|
|
|
|
# Check if commit message contains Signed-off-by line
|
|
if ! grep -q "^Signed-off-by:" "$1"; then
|
|
echo "Commit message must contain a 'Signed-off-by:' line."
|
|
echo "Please use 'git commit --signoff' or add a Signed-off-by line to your commit message."
|
|
exit 1
|
|
fi
|