From 4ac8686661675cf1e958e8a42206153967ea6b9f Mon Sep 17 00:00:00 2001 From: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com> Date: Wed, 13 May 2026 14:47:26 -0400 Subject: [PATCH] fix: upgrade cocogitto-action to v4 and fix commit range syntax The v3 action inputs (check:, from:) no longer match the v4 API. Switch to v4 with command: check and pass the git range as a positional args value (SHA..HEAD) which is what cog check accepts. --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f4744f..2206e6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,14 +61,16 @@ jobs: with: # Full history is required for cog check to validate all commits. fetch-depth: 0 + # On PRs check the PR HEAD, not the merge commit. + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - name: Check conventional commits - uses: cocogitto/cocogitto-action@v3 + uses: cocogitto/cocogitto-action@v4 with: - check: true + command: check # Only check commits since conventional commits were adopted. # 9b602f7 is the last commit before the first conventional commit. - from: 9b602f70a60e5651771ae40a934a7d417d9e1214 + args: 9b602f70a60e5651771ae40a934a7d417d9e1214..HEAD deny: name: Cargo deny