diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 91f6d80..7d14a7e 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -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 @@ -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 \ No newline at end of file + # 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 \ No newline at end of file diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 1ad4767..d5bdc4d 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -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 }} \ No newline at end of file + 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 }} \ No newline at end of file diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 453b6d4..2af0281 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -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" @@ -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 \ No newline at end of file + # claude_args: --system-prompt "Follow our coding standards" \ No newline at end of file