Skip to content

ci: skip the branch protection hook when pre-commit runs in CI - #197

Merged
cfssteve merged 1 commit into
mainfrom
ci-skip-branch-hook
Sep 4, 2026
Merged

cfssteve merged 1 commit into
mainfrom
ci-skip-branch-hook

Conversation

@cfssteve

@cfssteve cfssteve commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

The no-commit-to-branch hook exists to stop local commits on main. The Build Tests workflow runs pre-commit on main after a merge, where the hook fails by design and marks the run red although nothing is wrong. Skip it for the CI run only.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The no-commit-to-branch hook exists to stop local commits on main. The Build Tests workflow runs pre-commit on main after a merge, where the hook fails by design and marks the run red although nothing is wrong. Skip it for the CI run only.
@cfssteve
cfssteve merged commit 8654204 into main Sep 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants