Skip to content

Lint your commits per conventional commits specification

License

Notifications You must be signed in to change notification settings

Piraty/commitlint-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commitlint-sh

Lint your commits per conventional commits specification

Use this in post-commit hook and in your pipelines.

Requires:

  • cat
  • grep
  • head
  • mktemp
  • sh

Portable! Works with gnu-coreutils, busybox, toybox.

Usage

commitlint fails with nonzero exit status if the provided commit subject doesn't conform conventionalcommits spec.

# good
echo "fix: some bugz" | commitlint

# bad
echo "malformed" | commitlint
commitlint "malformed"

# example CI usage
git show --no-patch --pretty='format:%s' "${REF:-HEAD}" | commitlint

License

0BSD, see LICENSE.

Similar Projects

About

Lint your commits per conventional commits specification

Resources

License

Stars

Watchers

Forks

Releases

No releases published