Only allow dotCMS members to invoke claude from core #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |