diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml deleted file mode 100644 index 965f36654..000000000 --- a/.github/workflows/claude-code-review.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Claude Code Review - -on: - pull_request: - types: [opened, reopened] - pull_request_target: - types: [opened, reopened] - -jobs: - claude-review: - if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - issues: write - id-token: write - - steps: - - name: Checkout repository - uses: actions/checkout@v5 - with: - fetch-depth: 0 # Full history for better diff analysis - - - name: Run Claude Code Review - id: claude-review - uses: anthropics/claude-code-action@beta - with: - claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - - # Direct prompt for automated review (no @claude mention needed) - direct_prompt: | - Please review this PR and provide inline feedback using the GitHub review system. Follow these steps: - - 1. **Start a review**: Use `mcp__github__create_pending_pull_request_review` to begin a pending review - 2. **Get diff information**: Use `mcp__github__get_pull_request_diff` to understand the code changes and line numbers - 3. **Add inline comments**: Use `mcp__github__add_pull_request_review_comment_to_pending_review` for each specific piece of feedback on particular lines - 4. **Submit the review**: Use `mcp__github__submit_pending_pull_request_review` with event type "COMMENT" (not "REQUEST_CHANGES") to publish all comments as a non-blocking review - - Focus your review on: - - Code quality and best practices - - Potential bugs or security issues - - Performance considerations - - Maintainability and readability - - Architecture and design decisions - - Design of API interfaces for Clients - - Regressions and changes of API for end users - - Guidelines - - Try to be succinct in your review comments - - Give reasoning and explain why your comment is valid and needed - - Mark non-blocking comments as "nits" and blocking comments as "blockers" - - Provide specific, actionable feedback. Use inline comments for line-specific issues and include an overall summary when submitting the review. **Important**: Submit as "COMMENT" type so the review doesn't block the PR. - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - allowed_tools: | - mcp__github__create_pending_pull_request_review - mcp__github__add_pull_request_review_comment_to_pending_review - mcp__github__submit_pending_pull_request_review - mcp__github__get_pull_request_diff - Read - Glob - Grep - - use_sticky_comment: true - - diff --git a/.github/workflows/claude-dispatch.yml b/.github/workflows/claude-dispatch.yml deleted file mode 100644 index e9077ffd7..000000000 --- a/.github/workflows/claude-dispatch.yml +++ /dev/null @@ -1,49 +0,0 @@ -# IMPORTANT: Do not move this file in your repo! Make sure it's located at .github/workflows/claude-dispatch.yml -name: Claude Code Dispatch - -# IMPORTANT: Do not modify this `on` section! -on: - repository_dispatch: - types: [claude-dispatch] - -jobs: - claude-dispatch: - runs-on: macos-latest - permissions: - contents: write - pull-requests: write - issues: write - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@v5 - with: - fetch-depth: 1 - - # - name: Preliminary Setup - # run: | - # echo "Setting up environment..." - # Add any preliminary setup commands here to setup Claude's dev environment - # e.g., npm install, etc. - - - name: Run Claude Code - id: claude - uses: anthropics/claude-code-action@eap - with: - mode: 'remote-agent' - - # Optional: Specify an API key, otherwise we'll use your Claude account automatically - # 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" - - # Optional: Allow Claude to run specific commands - # allowed_tools: | - # Bash(npm run lint) - # Bash(npm run test) - # Bash(npm run build) - - # Optional: Custom environment variables for Claude - # claude_env: | - # NODE_ENV: test diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml deleted file mode 100644 index 5797445f6..000000000 --- a/.github/workflows/claude.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Claude Code - -on: - issue_comment: - types: [created] - pull_request_review_comment: - types: [created] - issues: - types: [opened, assigned] - pull_request_review: - types: [submitted] - -jobs: - claude: - if: | - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || - (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: read - issues: read - id-token: write - actions: read # Required for Claude to read CI results on PRs - steps: - - name: Checkout repository - uses: actions/checkout@v5 - with: - fetch-depth: 1 - - - name: Run Claude Code - id: claude - uses: anthropics/claude-code-action@beta - with: - claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - - # This is an optional setting that allows Claude to read CI results on PRs - additional_permissions: | - actions: read - - assignee_trigger: "fluid" -