Skip to content

Guide: CI Setup

Enforce commit conventions with confidence by linting on your CI servers with commitlint.

This guide assumes you have already configured commitlint for local usage.

Follow the Getting Started for basic installation and configuration instructions.

Actions

An example of how a Actions workflow could validate the last commit message or all commit messages inside a Pull Request:

Travis

CircleCI

It's just a simple example of how CircleCI configuration file could look like to validate last commit message

GitLab CI

GitLab limits git clone depth to 20 commits by default. Setting GIT_DEPTH: 0 removes this limitation, so commitlint can check larger MRs.

GitLab CI with pre-build container

Jenkins X

BitBucket

Validate commits within a PR by leveraging BitBucket`s default variables:

BitBucket limits git clone depth to 20 commits by default. You can change this behaviour by changing the clone option.

Azure Pipelines

3rd party integrations

Codemagic

TIP

Help yourself adopting a commit convention by using an interactive commit prompt. Learn how to use @commitlint/prompt-cli in the Use prompt guide.