Skip to content

Commit

Permalink
ci: target from base sha
Browse files Browse the repository at this point in the history
  • Loading branch information
HJunyuan committed Jul 19, 2024
1 parent 7ac8530 commit 886b339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- name: Validate current commit (last commit) with commitlint
run: npx commitlint --last --verbose
- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 comments on commit 886b339

Please sign in to comment.