screen-locker/scripts/check_gate_stamp.sh
Krzysztof kuhy Rudnicki 885951ee2b
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Tests / test (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
pre-push is a 1-second stamp check; the suites moved to the manual stage
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 19:35:35 +02:00

31 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# ============================================================================
# pre-push gate: is the pushed tree stamped as having passed the local gate?
#
# Thin delegate to the shared tool in ~/src/utils. The pre-push stage used to
# re-run every suite (10+ min under the resource cap); now finish_auto.sh's
# gate leaves a receipt (the tree hash) and this only compares against it.
#
# Usage:
# scripts/check_gate_stamp.sh check # pre-commit's pre-push stage (~1 s)
# scripts/check_gate_stamp.sh full # the old pre-push suites, then stamp
# ============================================================================
set -euo pipefail
readonly SHARED_GATE="${UTILS_ROOT:-$HOME/src/utils}/scripts/gate_stamp.sh"
main() {
if [[ ! -x "$SHARED_GATE" ]]; then
echo "Error: shared gate-stamp tool not found at $SHARED_GATE" >&2
echo " Clone github.com/kuhyx/utils to ~/src/utils, or set" >&2
echo " UTILS_ROOT to where it lives." >&2
exit 1
fi
exec bash "$SHARED_GATE" "$@"
}
main "$@"