nocommit pre-hook

This commit is contained in:
Manu Raghavan 2020-06-09 20:32:40 +00:00
parent f0bf512dbb
commit d3cb871783
5 changed files with 33 additions and 1 deletions

View file

@ -123,6 +123,9 @@ Replaces or checks mixed line ending.
Assert that files in tests/ end in `_test.py`.
- Use `args: ['--django']` to match `test*.py` instead.
#### `no-commit-keywords`
Protect branches from checkins when 'nocommit' keyword is present. Used to remind the author to prevent work-in-progress state from being committed.
#### `no-commit-to-branch`
Protect specific branches from direct checkins.
- Use `args: [--branch, staging, --branch, master]` to set the branch.