Skip to content

Commit 2f31749

Browse files
authored
Merge pull request #199 from orionrobots/pre-commit-branch-protection
Ensure we don't commit straight to master please
2 parents 3fbf53f + bd86fe1 commit 2f31749

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ repos:
1212
- id: check-merge-conflict
1313
- id: check-symlinks
1414
- id: destroyed-symlinks
15+
- id: no-commit-to-branch
16+
args: ["--branch", "master", "--branch", "main"]
1517
# Some exclusions
1618
- id: trailing-whitespace
1719
exclude: "^.*drawio$"
@@ -27,8 +29,8 @@ repos:
2729
exclude: "^.*drawio$"
2830
- id: detect-private-key
2931
exclude: "^.*drawio$"
30-
- id: detect-aws-credentials
31-
exclude: "^.*drawio$"
32+
# - id: detect-aws-credentials
33+
# exclude: "^.*drawio$"
3234
- id: check-ast
3335
exclude: "^.*drawio$"
3436
- id: check-shebang-scripts-are-executable

0 commit comments

Comments
 (0)