ACTIVEPIECES/.husky/commit-msg
rohit cd823a2d9e
Some checks failed
Crowdin Action / synchronize-with-crowdin (push) Has been cancelled
Release Pieces / Release-Pieces (push) Has been cancelled
automaton layer
2025-07-05 23:59:03 +05:30

11 lines
377 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Check if the commit includes changes to the backend's .env file
if git diff --cached --name-only -- packages/server/api/.env | grep -q '^packages/server/api/.env$'; then
echo "Error: You're attempting to commit the backend's .env file. Please avoid committing this file."
exit 1
fi
npx --no -- commitlint --edit ${1}