File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ lint:commit:
133
133
- apk add --no-cache git
134
134
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
135
135
script :
136
- - echo "${CI_COMMIT_MESSAGE}" | npx commitlint
136
+ - npx commitlint --from ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to ${CI_COMMIT_SHA}
137
137
` ` `
138
138
139
139
GitLab limits ` git clone` depth to
@@ -152,7 +152,7 @@ lint:commit:
152
152
script:
153
153
# Uncomment the next line if you are extending the @commitlint/config-nx-scopes in your commitlint configuration
154
154
#- npm i -g nx@$(node -pe "require('./package.json').devDependencies.nx")
155
- - echo "${CI_COMMIT_MESSAGE}" | commitlint
155
+ - commitlint --from ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to ${CI_COMMIT_SHA}
156
156
` ` `
157
157
158
158
# # Jenkins X
You can’t perform that action at this time.
0 commit comments