We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2690a01 commit 4c9792fCopy full SHA for 4c9792f
docs/guides/ci-setup.md
@@ -133,7 +133,7 @@ lint:commit:
133
- apk add --no-cache git
134
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
135
script:
136
- - echo "${CI_COMMIT_MESSAGE}" | npx commitlint
+ - npx commitlint --from ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to ${CI_COMMIT_SHA}
137
```
138
139
GitLab limits `git clone` depth to
@@ -152,7 +152,7 @@ lint:commit:
152
153
# Uncomment the next line if you are extending the @commitlint/config-nx-scopes in your commitlint configuration
154
#- npm i -g nx@$(node -pe "require('./package.json').devDependencies.nx")
155
- - echo "${CI_COMMIT_MESSAGE}" | commitlint
+ - commitlint --from ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to ${CI_COMMIT_SHA}
156
157
158
## Jenkins X
0 commit comments