Skip to content

Commit

Permalink
docs: improve GitLab CI pipeline job script (conventional-changelog#4275
Browse files Browse the repository at this point in the history
)
  • Loading branch information
6arms1leg authored Feb 9, 2025
1 parent 2690a01 commit 4c9792f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/ci-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ lint:commit:
- apk add --no-cache git
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
script:
- echo "${CI_COMMIT_MESSAGE}" | npx commitlint
- npx commitlint --from ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to ${CI_COMMIT_SHA}
```
GitLab limits `git clone` depth to
Expand All @@ -152,7 +152,7 @@ lint:commit:
script:
# Uncomment the next line if you are extending the @commitlint/config-nx-scopes in your commitlint configuration
#- npm i -g nx@$(node -pe "require('./package.json').devDependencies.nx")
- echo "${CI_COMMIT_MESSAGE}" | commitlint
- commitlint --from ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to ${CI_COMMIT_SHA}
```

## Jenkins X
Expand Down

0 comments on commit 4c9792f

Please sign in to comment.