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
17 changes: 14 additions & 3 deletions examples/workflows/claude-interactive-caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,33 @@ name: Claude Code Interactive
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
issues:
types: [opened, assigned]

# Prevent multiple simultaneous runs
# Include actor in group so bot comments don't cancel user workflows
concurrency:
group: claude-interactive-${{ github.event.issue.number }}-${{ github.actor }}
group: claude-interactive-${{ github.event.issue.number || github.event.pull_request.number }}-${{ github.actor }}
cancel-in-progress: true

jobs:
check-trigger:
# Only run when @claude is mentioned in issue/PR comments and not by bots
# Only run when @claude is mentioned and not by bots
if: |
github.actor != 'dependabot[bot]' &&
github.actor != 'renovate[bot]' &&
github.actor != 'claude[bot]' &&
github.actor != 'github-actions[bot]' &&
contains(github.event.comment.body, '@claude')
(
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
)
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.check.outputs.result }}
Expand Down