Skip to content

Commit 9b01520

Browse files
ci: fix config
1 parent 5c6284d commit 9b01520

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ jobs:
4646
run: lefthook run --force pre-commit
4747
-
4848
run: cargo hack test --feature-powerset
49+
-
50+
name: Validate PR commits with commitlint
51+
if: github.event_name == 'pull_request'
52+
run: commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ pre-commit:
2020
test-docs:
2121
run: cargo test --doc
2222
lint-commit:
23-
run: commitlint --from HEAD~1 --to HEAD
23+
run: commitlint --last

0 commit comments

Comments
 (0)