Skip to content

Commit 8b1399a

Browse files
committed
GitHubCI: fix commitlint workflow
According to conventional-changelog/commitlint#2568 (comment)
1 parent 0d54e7e commit 8b1399a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/commitlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
run: >
2020
for commit in $(git rev-list ${{ github.base_ref }}..${{
2121
github.head_ref }}); do
22-
npx commitlint --from $commit --to HEAD --verbose
22+
npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD --verbose
2323
done

0 commit comments

Comments
 (0)