Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

commitlint (GitLab CI component)

Validates Conventional Commits in a merge request using git-std.

This component consumes a driftsys/dock image which ships git-std preinstalled.

Inputs

NameRequiredDefaultDescription
rangeno$CI_MERGE_REQUEST_DIFF_BASE_SHA..HEADGit range to validate.
imagenoghcr.io/driftsys/dock:lint-v0.2.0Container image with git-std.
stagenotestPipeline stage.

Example

include:
  - component: gitlab.com/driftsys/ci/commitlint@~latest

Notes

  • The job only runs on merge request pipelines (CI_PIPELINE_SOURCE == "merge_request_event").
  • GIT_DEPTH: 0 is required to access full commit history.
  • Override image to pin to a specific dock release for reproducibility.