Skip to content

yanang007/gitmoji-lint

Repository files navigation

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

About

A linter that checks your gitmojis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages