From b768e422ad9c9b21f25c05e84e40ad1250a140ec Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 30 Nov 2026 20:51:54 -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 a404464..aab5ebd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,7 @@ repos: exclude: ^devvit/test/parity/golden\.md$ - id: no-commit-to-branch args: ['--branch', 'main'] + stages: [pre-push] - id: check-added-large-files - id: debug-statements - id: check-executables-have-shebangs