Files
Piik/scripts/check-project-state.sh
T
AAA da47189fc3 refactor: unify Go runtime and audited frontend
Squash integration of the reviewed Go core, frontend audit fixes, release tooling, and deployment hygiene. CI passed all Server/Client jobs.
2026-09-06 23:26:01 +08:00

25 lines
629 B
Bash
Executable File

#!/bin/sh
set -eu
repo_root=$(git rev-parse --show-toplevel)
cd "$repo_root"
while IFS= read -r path || [ -n "$path" ]; do
[ -z "$path" ] && continue
if ! git ls-files --error-unmatch -- "$path" >/dev/null 2>&1; then
echo "Required project artifact is not Git-tracked: $path" >&2
exit 1
fi
done < scripts/required-project-paths.txt
git diff --check
git diff --cached --check
if [ -n "${SCREENER_BASE_SHA:-}" ] && [ "$SCREENER_BASE_SHA" != "0000000000000000000000000000000000000000" ]; then
git diff --check "$SCREENER_BASE_SHA"...HEAD
fi
node scripts/check-docs.mjs
echo "Repository hygiene checks passed."