mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
Add no-commit-to-branch hook to prevent direct commits to main (#1149)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7966514a86
commit
64d469be98
2 changed files with 8 additions and 0 deletions
2
.github/workflows/run-static.yml
vendored
2
.github/workflows/run-static.yml
vendored
|
|
@ -44,3 +44,5 @@ jobs:
|
|||
run: uv sync --dev
|
||||
- name: Run pre-commit
|
||||
uses: pre-commit/action@v3.0.1
|
||||
env:
|
||||
SKIP: no-commit-to-branch
|
||||
|
|
|
|||
|
|
@ -27,3 +27,9 @@ repos:
|
|||
hooks:
|
||||
- id: pyright-pretty
|
||||
files: ^src/|^tests/
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: no-commit-to-branch
|
||||
args: [--branch, main]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue