Lint all relevant commits for a change or PR on Jenkins CI

Downloads in past


201.6.02 years ago3 years agoMinified + gzip package size for @mixmaxhq/commitlint-jenkins in KB


Commitizen friendly
A wrapper for commitlint that determines the appropriate commit range in a Jenkins build. Adapted from @commitlint/travis-cli.
Only supports git projects, assumes a single repository (i.e. does not explicitly support cross- repo pull requests), and doesn't support renaming the remote to something other than origin. We welcome pull requests!



If commitlint-jenkins is run outside of a CI context, it will fail. This flag simply ignores the failure, for use-cases where commitlint-jenkins should be run from a script shared with a non-CI workflow.


If commitlint-jenkins is run in CI in a build that isn't a pull request build, silently exit. This flag is particularly handy for use with @mixmaxhq/semantic-commitlint.