You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Checking commit messages for trailing period"
FAIL=0
for SHA in $COMMITS; do
MSG=$(git log -1 --pretty=%s $SHA)
echo "Checking commit $SHA: $MSG"
if [[ "${MSG: -1}" != "." ]]; then
echo "❌ Commit $SHA must end with a period."
echo "Refer to the guidelines linked in the PR checklist for commit message format."
echo "For how to rewrite commit messages, see https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/#editing-commit-messages"
FAIL=1
fi
done
if [[ $FAIL -eq 1 ]]; then
echo "One or more commit messages are missing a trailing period."
exit 1
fi
echo "✅ All commits have the required trailing period."