Skip to content

Commit

Permalink
ci(commitlint): adjust commits diff for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargonath committed Feb 25, 2024
1 parent de2e9e5 commit f97868a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: npm i -D @semantic-release/git @semantic-release/changelog @commitlint/{cli,config-conventional} commitlint
- 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.head.sha }}~${{ github.event.pull_request.commits - 1 }} --to ${{ github.event.pull_request.head.sha }} --verbose

test:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit f97868a

Please sign in to comment.