From 3027fd51ecbf07a82d9b5f699dca53324578bf5d Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Mon, 12 Oct 2026 23:39:30 +0300 Subject: [PATCH] ci: validate release PR commits independently (WealthLedger/main#30) --- .gitea/workflows/commits.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/commits.yml b/.gitea/workflows/commits.yml index c4c8d9e..fa89ebf 100644 --- a/.gitea/workflows/commits.yml +++ b/.gitea/workflows/commits.yml @@ -23,4 +23,8 @@ jobs: HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: | printf '%s\n' "$PR_TITLE" | npm exec --no -- commitlint --strict - npm exec --no -- commitlint --strict --from "$BASE_SHA" --to "$HEAD_SHA" + if [[ "$PR_TITLE" =~ ^chore\(release\):\ [0-9]+\.[0-9]+\.[0-9]+$ ]]; then + npm exec --no -- commitlint --strict --from "$HEAD_SHA^" --to "$HEAD_SHA" + else + npm exec --no -- commitlint --strict --from "$BASE_SHA" --to "$HEAD_SHA" + fi