mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add update_commit_msg
Update hooks file Update description Simplify approach Remove redundant statement Add test Add more tests Updates lints Use io.open instead Update setup.py Remove unused import Rename update-commit-msg to prepend-ticket-number-to-commit-msg
This commit is contained in:
parent
c65fcd3fc5
commit
ed5a523745
5 changed files with 124 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ Add this to your `.pre-commit-config.yaml`
|
|||
use `args: [--markdown-linebreak-ext=md]` (or other extensions used
|
||||
by your markdownfiles). If for some reason you want to treat all files
|
||||
as markdown, use `--markdown-linebreak-ext=*`.
|
||||
- `prepend-ticket-number-to-commit-msg` - Use it to prepend your commits with info from your branch, like ticket numbers. For e.g. if you name your branch `JIRA-1234_awesome_feature` and commit `Fix some bug`, the commit will be updated to `JIRA-1234 Fix some bug`. Pass `--regex=` or update `args: [--regex=<custom regex>]` in your .yaml file if you have custom ticket regex. By default its `[A-Z]+-\d+`.
|
||||
|
||||
### Deprecated / replaced hooks
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue