Open matyasf opened 4 months ago
Does this duplicate or relate to https://github.com/conventional-changelog/commitlint/issues/6?
We are running the following command: commitlint --from=HEAD^1
What does HEAD^1
mean? is it the same as HEAD~1
? And why are you not using --to
?
I have the same error in GitHub Actions. I use runs-on: ubuntu-latest
and install the packages: cli
, config-conventional
, and types
. The command I run is: pnpm dlx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
@MatthieuLeterme you are using ~
but the reporter of this bug used ^
, please open a new bug.
Steps to Reproduce
We are running the following command:
commitlint --from=HEAD^1
. This works fine on OSX, but fails in Windows 10 (cmd.exe) with the following error:Node version: 22
commitlint.config.js:
versions:
(was producing the same error on v17)
running via Husky