Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 910 Bytes

README.md

File metadata and controls

57 lines (38 loc) · 910 Bytes

Gitmoji-lint

Gitmoji-lint is a linter that checks the gitmojis in your commit messages.

Using Gitmoji-lint with pre-commit

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

Using Gitmoji-lint CLI

Installation

Gitmoji-lint can be installed with pip.

pip install gitmoji-lint

CLI

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.'