From 658f37481142a8dc437a33fd27d31f6727a8a42f Mon Sep 17 00:00:00 2001 From: ljwharbers Date: Thu, 1 Oct 2026 09:16:13 +0200 Subject: [PATCH] Stop PR comments from cancelling the Claude review Workflow-level concurrency is evaluated before the job's if, so every comment on a PR joined claude-review- and cancelled the running review. Claude's own summary comment did this at the end of every review, so each run on #202 and #207 ended as cancelled (red) even though its comments were posted. A human comment mid-review would kill it outright. Comments that are not '@claude review' now get a per-run group. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/claude-review.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 227f5f4e..43213a35 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -15,8 +15,11 @@ on: issue_comment: types: [created] +# Workflow concurrency applies before the job `if`, so every PR comment joins +# the group, including Claude's own summary comment. Comments that are not +# `@claude review` get a group of their own, so they cannot cancel a review. concurrency: - group: claude-review-${{ github.event.pull_request.number || github.event.issue.number }} + group: claude-review-${{ github.event.pull_request.number || github.event.issue.number }}${{ github.event_name == 'issue_comment' && !startsWith(github.event.comment.body, '@claude review') && format('-{0}', github.run_id) || '' }} cancel-in-progress: true jobs: