Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/claude-code-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ on:
required: false

jobs:
# Interactive mode: PR reviews and @claude mentions
# Interactive mode: PR reviews and comments from trusted contributors
claude:
if: >-
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
contains(github.event.comment.body, '@claude') &&
github.event.comment.user.login != 'claude[bot]' &&
contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review_comment' &&
contains(github.event.comment.body, '@claude') &&
github.event.comment.user.login != 'claude[bot]' &&
contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the @claude mention gate removed, this job will now run much more frequently (potentially for every review comment from trusted users). The workflow currently has no concurrency configured for the claude job, so multiple comments in quick succession can start overlapping runs on the same PR, which can lead to conflicting pushes/comments and unnecessary compute/API usage. Consider adding a concurrency group keyed by PR number (or issue/PR number fallback) with cancel-in-progress: true to ensure only one interactive run per PR at a time.

Suggested change
contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
concurrency:
group: ${{ format('claude-{0}', github.event.pull_request.number || github.event.issue.number || github.run_id) }}
cancel-in-progress: true

Copilot uses AI. Check for mistakes.
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down
Loading