Skip to content

Commit 71636ea

Browse files
authored
ci(pre-commit): forbid commiting ot main (#50)
1 parent c5746e5 commit 71636ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
fail_fast: true
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v6.0.0
@@ -6,6 +7,10 @@ repos:
67
- id: end-of-file-fixer
78
- id: check-yaml
89
- id: check-added-large-files
10+
- id: no-commit-to-branch
11+
args:
12+
- -b
13+
- main
914
- repo: local
1015
hooks:
1116
- id: format

0 commit comments

Comments
 (0)