From 942ea640f389d2c942e975e3258df2f737f68289 Mon Sep 17 00:00:00 2001 From: Cong <72737794+robolearning123@users.noreply.github.com> Date: Tue, 24 Mar 2026 23:05:59 -0400 Subject: [PATCH] fix(ci): skip no-commit-to-branch hook in CI The pre-commit hook 'no-commit-to-branch' prevents local commits to main, but fails in CI which runs on main after merge. SKIP env var excludes it. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df0df97..cdb70e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: - run: ruff check . - run: ruff format --check . - uses: pre-commit/action@v3.0.1 + env: + SKIP: no-commit-to-branch test: name: test (py${{ matrix.python-version }})