Skip to content

Commit c3d4801

Browse files
jsollyclaude
andcommitted
chore(gate): migrate pre-push gate to pre-commit
Fire the quality gate at commit time instead of push time so a bad commit is caught before it lands in history. Uses gate_begin_commit (staged/merge/doc-only fast paths, no clean-tree requirement) and points dep-grounding at the renamed hook. GitHub CI (CI / ci) remains the backstop on the PR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c6dad0d commit c3d4801

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Pre-push GATE for learn-the-far (gate-only — this hook does NOT deploy).
2+
# Pre-commit GATE for learn-the-far (gate-only — this hook does NOT deploy).
33
set -euo pipefail
44

55
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"; cd "$ROOT"
@@ -9,13 +9,12 @@ source "${DOTAGENTS_GATE_LIB:-$HOME/code/dotagents/gate/gate-lib.sh}" || {
99
exit 1
1010
}
1111

12-
gate_begin "learn-the-far"
13-
gate_require_clean_tree
12+
gate_begin_commit "learn-the-far"
1413
gate_require_node
1514
gate_npm_ci --if-stale
1615

17-
run_step "dep grounding" gate_check_dep_grounding .git-hooks/pre-push
16+
run_step "dep grounding" gate_check_dep_grounding .git-hooks/pre-commit
1817
run_step "astro check (types)" npm run check:ts
1918
run_step "build" npm run build
2019

21-
echo "✓ pre-push gate passed — push will land; Vercel deploys via GitHub integration."
20+
echo "✓ pre-commit gate passed — commit will land; push to a PR, Vercel deploys via GitHub integration on merge."

0 commit comments

Comments
 (0)