Modularize durable truth, bound always-loaded instructions, and keep domain-document size checks advisory. Local cross-platform repository hygiene checks pass; GitHub-hosted steps were not started because of the account billing state.
25 lines
555 B
Bash
Executable File
25 lines
555 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:-}" ]; then
|
|
git diff --check "$SCREENER_BASE_SHA"...HEAD
|
|
fi
|
|
|
|
node scripts/check-docs.mjs
|
|
|
|
echo "Repository hygiene checks passed."
|