Skip to content

Commit 0f5cb79

Browse files
authored
docs: use GH base sha to lint PR commits (#4198)
1 parent c161ef3 commit 0f5cb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/ci-setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Validate PR commits with commitlint
4848
if: github.event_name == 'pull_request'
49-
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
49+
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
5050
```
5151
5252
## Travis

0 commit comments

Comments
 (0)