Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
yml 66 lines 2.28 KB
Raw
1 name: Claude Code
2
3 on:
4 issue_comment:
5 types: [created]
6 pull_request_review_comment:
7 types: [created]
8 issues:
9 types: [opened, assigned]
10 pull_request_review:
11 types: [submitted]
12
13 permissions:
14 contents: read
15
16 jobs:
17 claude:
18 if: |
19 (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
20 (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
21 (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
22 (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
23 runs-on: ubuntu-latest
24 permissions:
25 contents: read
26 pull-requests: read
27 issues: read
28 id-token: write
29 steps:
30 - name: Checkout repository
31 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32 with:
33 fetch-depth: 1
34 submodules: true
35
36 - name: Run Claude Code
37 id: claude
38 uses: anthropics/claude-code-action@4fa93a88de49bbef68b10eb15aabedf28ca0e1ed # v1.0.271
39 with:
40 anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
41 allowed_bots: "devin-ai-integration[bot],decimal-pr-bot[bot],github-actions[bot],dependabot[bot],zen-agent"
42
43 # Optional: Custom settings and environment variables for Claude
44 # settings: |
45 # {
46 # "env": {
47 # "NODE_ENV": "test",
48 # "CI": "true"
49 # }
50 # }
51
52 # https://code.claude.com/docs/en/cli-reference#cli-flags
53 # -- model: "claude-opus-4-20250514"
54 # claude_args: |
55 # --allowedTools "Bash(pnpm install),Bash(pnpm build:packages),Bash(pnpm build:binary),Bash(pnpm test:*)"
56 # --model: "claude-opus-4-20250514"
57 # --append-system-prompt: |
58 # Follow our coding standards
59 # Ensure all new code has tests
60 # Use TypeScript for new files
61
62 # Optional: Customize the trigger phrase (default: @claude)
63 # trigger_phrase: "/claude"
64
65 # Optional: Trigger when specific user is assigned to an issue
66 # assignee_trigger: "claude-bot"