From a460dac6bbeeaeca85ff8c45db3ef654beb64b18 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev <829578+DenisGorbachev@users.noreply.github.com> Date: Mon, 22 Jul 2024 06:39:41 +0700 Subject: [PATCH] ci: fix config --- .github/workflows/ci.yml | 4 ++++ lefthook.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c27365..c901cc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,3 +46,7 @@ jobs: run: lefthook run --force pre-commit - run: cargo hack test --feature-powerset + - + name: Validate PR commits with commitlint + if: github.event_name == 'pull_request' + run: commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose diff --git a/lefthook.yml b/lefthook.yml index 9c506bc..a691266 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -20,4 +20,4 @@ pre-commit: test-docs: run: cargo test --doc lint-commit: - run: commitlint --from HEAD~1 --to HEAD + run: commitlint --last