Skip to content

vfunin/conventional-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conventional Pre Commit - Git Pre-commit Hooks

Pre-commit scripts appropriate for any project. These hooks are made as custom plugins under the pre-commit git hook framework.

Requirements

Setup

Just add to your .pre-commit-config.yaml file with the following (replace rev)

  - repo: https://github.com/vfunin/conventional-pre-commit
    rev: <git tag or sha>
    hooks:
      - id: message
      - id: branch

Or add new config file (replace rev)

echo "repos:
  - repo: git://github.com/pre-commit/pre-commit-hooks
    rev: <git tag or sha>
    hooks:
      - id: check-merge-conflict
      - id: check-yaml
      - id: end-of-file-fixer
      - id: trailing-whitespace
  - repo: https://github.com/vfunin/conventional-pre-commit
    rev: <git tag or sha>
    hooks:
      - id: message
      - id: branch" > .pre-commit-config.yaml

Install the pre-commit script:

pre-commit install

That's it!

Now try 'normal' commit:

git commit -m "add a new feature"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages