File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Claude Code
22
33on :
4+ pull_request :
5+ types : [opened, synchronize, reopened]
46 issue_comment :
57 types : [created]
68 pull_request_review_comment :
@@ -17,6 +19,7 @@ permissions:
1719jobs :
1820 claude :
1921 if : |
22+ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
2023 (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
2124 (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
2225 (github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
4750 - uses : anthropics/claude-code-action@v1
4851 with :
4952 anthropic_api_key : ${{ secrets.LITELLM_API_KEY }}
53+ prompt : |
54+ ${{ github.event_name == 'pull_request' && format('Review PR #{0} using the /review command.', github.event.pull_request.number) || '' }}
5055 claude_args : |
5156 --model claude-opus-4-6
5257 --allowedTools "mcp__github_inline_comment__create_inline_comment"
You can’t perform that action at this time.
0 commit comments