3131jobs :
3232 # Example 1: Custom trigger for urgent issues only
3333 claude-urgent-issues :
34- uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1 .0.0
34+ uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2 .0.0
3535 with :
3636 trigger_mode : interactive
3737 # Custom condition: Only trigger for issues labeled as "urgent" or "critical"
4141 contains(github.event.issue.labels.*.name, 'critical') ||
4242 contains(github.event.issue.labels.*.name, 'P0')
4343 )
44- allowed_tools : |
45- Bash(git status)
46- Bash(git diff)
44+ claude_args : ' --allowedTools "Bash(git status),Bash(git diff)"'
4745 timeout_minutes : 10
4846 runner : ubuntu-latest
4947 enable_mention_detection : false # Disable default @claude detection since we have custom logic
5250
5351 # Example 2: Custom trigger for specific file changes
5452 claude-config-changes :
55- uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1 .0.0
53+ uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2 .0.0
5654 with :
5755 trigger_mode : automatic
5856 # Custom condition: Only trigger for PRs that modify configuration files
@@ -62,17 +60,14 @@ jobs:
6260 contains(github.event.pull_request.body, 'configuration') ||
6361 github.event.pull_request.changed_files > 10
6462 )
65- direct_prompt : |
66- This PR appears to modify configuration files or has many changes.
63+ prompt : |
64+ This PR appears to modify configuration files or has many changes.
6765 Please review for:
6866 - Configuration syntax and validity
6967 - Potential breaking changes
7068 - Security implications of config changes
7169 - Impact on existing functionality
72- allowed_tools : |
73- Bash(git status)
74- Bash(git diff)
75- Bash(grep -r "config" .)
70+ claude_args : ' --allowedTools "Bash(git status),Bash(git diff),Bash(grep -r \"config\" .)"'
7671 timeout_minutes : 15
7772 runner : ubuntu-latest
7873 enable_mention_detection : false
8176
8277 # Example 3: Custom trigger combining multiple conditions
8378 claude-security-review :
84- uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1 .0.0
79+ uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2 .0.0
8580 with :
8681 trigger_mode : automatic
8782 # Custom condition: Security-related changes or mentions
@@ -96,17 +91,14 @@ jobs:
9691 contains(github.event.comment.body, 'security review') ||
9792 contains(github.event.comment.body, '@security-team')
9893 ))
99- direct_prompt : |
94+ prompt : |
10095 This appears to be a security-related change. Please provide a thorough security review focusing on:
10196 - Authentication and authorization mechanisms
10297 - Input validation and sanitization
10398 - Potential security vulnerabilities
10499 - Compliance with security best practices
105100 - Impact on existing security controls
106- allowed_tools : |
107- Bash(git status)
108- Bash(git diff)
109- Bash(grep -r "password\|token\|secret\|key" . --exclude-dir=.git)
101+ claude_args : ' --allowedTools "Bash(git status),Bash(git diff)"'
110102 timeout_minutes : 20
111103 runner : ubuntu-latest
112104 enable_mention_detection : false
@@ -115,13 +107,11 @@ jobs:
115107
116108 # Example 4: Fallback with default @claude mention detection
117109 claude-general :
118- uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v1 .0.0
110+ uses : dotCMS/ai-workflows/.github/workflows/claude-orchestrator.yml@v2 .0.0
119111 with :
120112 trigger_mode : interactive
121113 # No custom condition - will use default @claude mention detection
122- allowed_tools : |
123- Bash(git status)
124- Bash(git diff)
114+ claude_args : ' --allowedTools "Bash(git status),Bash(git diff)"'
125115 timeout_minutes : 15
126116 runner : ubuntu-latest
127117 enable_mention_detection : true # Use default @claude mention detection
0 commit comments