Skip to content

Commit ee99cfd

Browse files
ikraamgclaude
andcommitted
Restrict Claude to ikraamg, auto-investigate new issues
- Only triggers for ikraamg (using github.actor) - Auto-runs on ALL new issues for preliminary investigation - Still requires @claude mention for comments - Removed 'assigned' trigger (not needed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bc0778f commit ee99cfd

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/claude.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,15 @@ on:
66
pull_request_review_comment:
77
types: [created]
88
issues:
9-
types: [opened, assigned]
9+
types: [opened]
1010

1111
jobs:
1212
claude:
1313
if: |
14-
(
15-
github.event.comment.author_association == 'OWNER' ||
16-
github.event.comment.author_association == 'MEMBER' ||
17-
github.event.comment.author_association == 'COLLABORATOR' ||
18-
github.event.issue.author_association == 'OWNER' ||
19-
github.event.issue.author_association == 'MEMBER' ||
20-
github.event.issue.author_association == 'COLLABORATOR'
21-
) && (
14+
github.actor == 'ikraamg' && (
15+
(github.event_name == 'issues') ||
2216
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
23-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
24-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
2518
)
2619
runs-on: ubuntu-latest
2720
permissions:
@@ -41,5 +34,6 @@ jobs:
4134
uses: anthropics/claude-code-action@v1
4235
with:
4336
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
37+
prompt: ${{ github.event_name == 'issues' && 'Investigate this issue. Review the codebase to understand if this is a valid issue, identify relevant files, and suggest potential approaches to address it. Be concise.' || '' }}
4438
additional_permissions: |
4539
actions: read

0 commit comments

Comments
 (0)