Files
2026-07-09 02:59:53 +03:00

21 lines
496 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
CHANGED_FILES=$(git diff --cached --name-only)
if [ -z "$CHANGED_FILES" ]; then
exit 0
fi
echo "🔍 Semantik etki analizi başlatılıyor..."
echo "Değişen dosyalar:"
echo "$CHANGED_FILES"
echo "--------------------------------------------------"
python3 .githooks/semantic_analyzer.py "$CHANGED_FILES"
ANALYSIS_RESULT=$?
if [ $ANALYSIS_RESULT -ne 0 ]; then
echo "❌ COMMIT ENGELLENDİ: Kritik bir modül risk altında veya testler başarısız."
exit 1
fi
exit 0