Skip to content

Commit

Permalink
Merge pull request #4494 from Swiftb0y/pre-commit-disallow-committing…
Browse files Browse the repository at this point in the history
…-to-version-branches

.pre-commit-config.yaml: disallow commiting to version branches
  • Loading branch information
daschuer authored Oct 31, 2021
2 parents acfcdce + 769ba03 commit 5577f36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ repos:
- commit
- manual
- id: no-commit-to-branch
# protect main and any branch that has a semver-like name
args: [-b, main, -p, '^\d+\.\d+(?:\.\d+)?$']
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
Expand Down

0 comments on commit 5577f36

Please sign in to comment.