feat(commitlint): users can customise the docker image and the base branch to use
Verify formatting of all commit messages in the range
$BASE_BRANCH..$CI_COMMIT_SHA
.
USAGE
include:
- project: EOLE/infra/ci-tools
ref: stable
file: /templates/Rules.yaml
- project: EOLE/infra/ci-tools
ref: stable
file: /templates/Lint/Commitlint.yaml
stages:
- lint
OPTIONAL VARIABLES
-
BASE_BRANCH
: name of the referrence branch, defaults to${CI_DEFAULT_BRANCH}
-
COMMITLINT_IMAGE
: name of thecommitlint
docker image to use
REQUIREMENTS
- The
.not-on-stable
rules template - A
lint
stage must be present in your pipeline or it must be overriden by the extending job to feet your need.
USED CI VARIABLES
CI_COMMIT_SHA
CI_DEFAULT_BRANCH
CI_REPOSITORY_URL