Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:

- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@beta
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
# model: "claude-opus-4-20250514"
# claude_args: --model claude-opus-4-20250514

# Direct prompt for automated review (no @claude mention needed)
direct_prompt: |
prompt: |
Please review this pull request and provide feedback on:
- Code quality and best practices
- Potential bugs or issues
Expand All @@ -48,22 +48,9 @@ jobs:
Be constructive and helpful in your feedback.

# Optional: Customize review based on file types
# direct_prompt: |
# Review this PR focusing on:
# - For TypeScript files: Type safety and proper interface usage
# - For API endpoints: Security, input validation, and error handling
# - For React components: Performance, accessibility, and reusability
# - For test files: Coverage, edge cases, and test quality

# Optional: If automated review posts public comments
# no_comments: true

# Optional: Create a summary comment on the PR
# summary_comment: true

# Optional: Allow Claude to suggest code changes
# allow_code_suggestions: true

# Optional: Limit Claude review scope
# max_files_to_review: 10
# max_lines_per_file: 500
# prompt: |
# Review this PR focusing on:
# - For TypeScript files: Type safety and proper interface usage
# - For API endpoints: Security, input validation, and error handling
# - For React components: Performance, accessibility, and reusability
# - For test files: Coverage, edge cases, and test quality
13 changes: 7 additions & 6 deletions .github/workflows/claude-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ jobs:
EOF

- name: Run Claude Code for Issue Triage
uses: anthropics/claude-code-base-action@beta
uses: anthropics/claude-code-base-action@v1
timeout-minutes: 5
with:
prompt_file: /tmp/claude-prompts/triage-prompt.txt
allowed_tools: "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__search_issues,mcp__github__list_issues"
timeout_minutes: "5"
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
mcp_config: /tmp/mcp-config/mcp-servers.json
claude_env: |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
claude_args: |
--allowed-tools "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__search_issues,mcp__github__list_issues"
--mcp-config /tmp/mcp-config/mcp-servers.json
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 7 additions & 17 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@beta
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
# model: "claude-opus-4-20250514"
# claude_args: --model claude-opus-4-20250514

# Optional: Customize the trigger phrase (default: @claude)
# trigger_phrase: "/claude"
Expand All @@ -55,18 +55,8 @@ jobs:
# assignee_trigger: "claude-bot"

# Allow Claude to run linters, typecheckers, and tests
allowed_tools: |
Bash(python -m ruff check:*)
Bash(python -m ruff format:*)
Bash(python -m mypy:*)
Bash(python -m pytest:*)

claude_args: |
--allowed-tools "Bash(python -m ruff check:*),Bash(python -m ruff format:*),Bash(python -m mypy:*),Bash(python -m pytest:*)"

# Optional: Add custom instructions for Claude to customize its behavior for your project
# custom_instructions: |
# Follow our coding standards
# Ensure all new code has tests
# Use TypeScript for new files

# Optional: Custom environment variables for Claude
# claude_env: |
# NODE_ENV: test
# claude_args: --system-prompt "Follow our coding standards"