File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4+ # Skip in CI: dedicated jobs run these checks and branch protection is enforced
5+ # server-side. These hooks are a local-only safety net.
6+ if [ -n " ${CI:- } " ]; then exit 0; fi
7+
48# Run checks individually so a failure stops early and is clearly attributed.
59# Use check-only variants (no --write / --fix) — auto-fixing mid-commit leaves
610# the working tree out of sync with the snapshot git is about to commit.
Original file line number Diff line number Diff line change 77# GitHub branch protection is the server-side backstop; this is the local guard.
88set -euo pipefail
99
10+ # Skip in CI: dedicated jobs run these checks and branch protection is enforced
11+ # server-side. These hooks are a local-only safety net.
12+ if [ -n " ${CI:- } " ]; then exit 0; fi
13+
1014protected=' ^refs/heads/(main|master|release/.*)$'
1115
1216while read -r _local_ref _local_sha remote_ref _remote_sha; do
You can’t perform that action at this time.
0 commit comments