From b70383658f7d4e6b1f6669f6eddda0d8ac115907 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 30 Nov 2026 20:51:50 -0600 Subject: [PATCH] ci: run no-commit-to-branch on pre-push only The shared pre-commit workflow no longer skips this hook, so it fails on a CI push to main. Staging it at pre-push keeps the local guard. Co-Authored-By: Claude Sonnet 5.5 --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a516a56..8d8abac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: name: trim trailing whitespace - id: no-commit-to-branch args: ['--branch', 'main'] + stages: [pre-push] - id: check-added-large-files name: check for added large files - id: detect-private-key