From 630a17ec14de3f671120551dbfd5c82b84edfe07 Mon Sep 17 00:00:00 2001 From: Nicholas Gates Date: Sun, 3 May 2026 22:44:28 -0400 Subject: [PATCH] Claude cancellation Signed-off-by: Nicholas Gates --- .github/workflows/claude-review.yml | 11 +++++------ .github/workflows/claude-write.yml | 7 +++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 7802904c99f..41fbbeb77ef 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -19,12 +19,6 @@ name: Claude Code (Review) # - PR conversation comments on PRs already opened by the Claude App are handled by # claude-write.yml so maintainers can ask Claude to make follow-up changes there. -concurrency: - # `issue_comment` events on PRs expose the PR number via `github.event.issue.number`, - # so this falls back there when `github.event.pull_request.number` is unset. - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }} - cancel-in-progress: true - on: issue_comment: types: [created] @@ -226,6 +220,11 @@ jobs: if: needs.gate.outputs.should_run == 'true' runs-on: ubuntu-latest timeout-minutes: 45 + concurrency: + # `issue_comment` events on PRs expose the PR number via `github.event.issue.number`, + # so this falls back there when `github.event.pull_request.number` is unset. + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }} + cancel-in-progress: true permissions: contents: read issues: write diff --git a/.github/workflows/claude-write.yml b/.github/workflows/claude-write.yml index 252bb8f9382..f924be324ed 100644 --- a/.github/workflows/claude-write.yml +++ b/.github/workflows/claude-write.yml @@ -27,10 +27,6 @@ name: Claude Code (Write) # than the numeric App ID in the PR payload, so the gate checks `CLAUDE_APP_LOGIN` # instead of comparing directly to `APP_ID`. -concurrency: - group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }} - cancel-in-progress: true - on: issues: types: [opened, assigned] @@ -152,6 +148,9 @@ jobs: if: needs.gate.outputs.should_run == 'true' runs-on: ubuntu-latest timeout-minutes: 60 + concurrency: + group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }} + cancel-in-progress: true environment: # The App private key lives only in this environment so only this single job