Skip to content
Open
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
36 changes: 36 additions & 0 deletions .github/workflows/ai-on-demand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Claude-Code When Mentioned

# Concurrency control to prevent multiple jobs running for the same PR/issue
concurrency:
group: claude-${{ github.event.pull_request.number || github.event.issue.number || 'manual' }}
cancel-in-progress: false

on:
workflow_dispatch:
inputs:
test_mode:
description: 'Test mode for debugging'
required: false
type: boolean
default: false
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]

jobs:
# Interactive Claude mentions (simplified using centralized logic)
claude-interactive:
uses: dotCMS/ai-workflows/.github/workflows/[email protected]
with:
trigger_mode: interactive
allowed_tools: |
Bash(git status)
Bash(git diff)
timeout_minutes: 15
runner: ubuntu-latest
enable_mention_detection: true # Uses built-in @claude mention detection
# custom_trigger_condition: | # Optional: Override default mention detection
# your custom condition here
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Loading