From ab6e82111a9e01e9218d013dec5e7110ca0e9774 Mon Sep 17 00:00:00 2001 From: Tom Casaburi Date: Wed, 18 Nov 2026 13:23:36 +0100 Subject: [PATCH 1/3] fix(ci): skip Claude reviews on draft PRs [skip github-alerts] --- .github/workflows/claude-code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 8d25f2d..7c7ea22 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -16,7 +16,7 @@ concurrency: jobs: review: # Fork pull requests get no secrets, and the action rejects bot actors such as Dependabot. - if: github.event.pull_request.head.repo.full_name == github.repository && !endsWith(github.actor, '[bot]') + if: github.event.pull_request.head.repo.full_name == github.repository && !endsWith(github.actor, '[bot]') && !github.event.pull_request.draft runs-on: ubuntu-latest timeout-minutes: 30 permissions: From 7872890af9465609b3d6a1a3466b3aa489264013 Mon Sep 17 00:00:00 2001 From: Tom Casaburi Date: Wed, 18 Nov 2026 13:26:09 +0100 Subject: [PATCH 2/3] chore(ci): cancel Claude review when a PR returns to draft [skip github-alerts] --- .github/workflows/claude-code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 7c7ea22..5edbcf0 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -7,7 +7,7 @@ name: Claude Code Review on: pull_request: - types: [opened, synchronize, ready_for_review, reopened] + types: [opened, synchronize, ready_for_review, reopened, converted_to_draft] concurrency: group: claude-code-review-${{ github.event.pull_request.number }} From 905eb6a4ee45444117057210c500c627952cce9d Mon Sep 17 00:00:00 2001 From: Tom Casaburi Date: Wed, 18 Nov 2026 13:28:05 +0100 Subject: [PATCH 3/3] chore(ci): isolate skipped Claude draft events [skip github-alerts] --- .github/workflows/claude-code-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 5edbcf0..8bf8678 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -10,7 +10,7 @@ on: types: [opened, synchronize, ready_for_review, reopened, converted_to_draft] concurrency: - group: claude-code-review-${{ github.event.pull_request.number }} + group: claude-code-review-${{ github.event.pull_request.number }}${{ github.event.pull_request.draft && github.event.action != 'converted_to_draft' && '-draft' || '' }} cancel-in-progress: true jobs: