diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7fb642c..004ffc1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,9 @@ repos: - id: check-yaml - id: check-json exclude: \.tmpl$ + - id: no-commit-to-branch + args: [--branch, main] + - id: detect-private-key - repo: https://github.com/commitizen-tools/commitizen rev: v4.1.0