parent
7ec31deee3
commit
18ab8f02aa
4 changed files with 27 additions and 1 deletions
@ -0,0 +1 @@ |
||||
bash scripts/pre-commit-check.sh |
@ -0,0 +1,13 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
set -e |
||||
PACKAGE_FILE="package.json" |
||||
SEARCH_STRING="github:roadmapsh/web-draw-v2" |
||||
|
||||
if grep -q "$SEARCH_STRING" "$PACKAGE_FILE"; then |
||||
echo "❌ Commit blocked! '$SEARCH_STRING' found in $PACKAGE_FILE." |
||||
exit 1 |
||||
fi |
||||
|
||||
echo "✅ Pre-commit check passed." |
||||
exit 0 |
Loading…
Reference in new issue