Gitmoji-lint is a linter that checks the gitmojis in your commit messages.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/yanang007/gitmoji-lint
rev: '' # Use the sha you want to point at
hooks:
- id: gitmoji-lint
Gitmoji-lint can be installed with pip
.
pip install gitmoji-lint
Checks the last three commits.
gitmoji-lint --head 3
Checks new commits in the branch.
gitmoji-lint --rev-range origin/HEAD..HEAD
Checks the file (to use as commit-msg
hook).
gitmoji-lint --commit-msg-file .git/COMMIT_EDITMSG
Checks all the commits in current branch.
gitmoji-lint --all
Checks a given string.
gitmoji-lint --message 'This will fail.'