From dd72bc3dbc7b9fec08ce257ed2ff2580a7089de0 Mon Sep 17 00:00:00 2001 From: KM Koushik Date: Mon, 18 May 2026 10:55:10 +1000 Subject: [PATCH 1/2] fix: update Claude workflows Entire-Checkpoint: ece952fb64ea --- .github/workflows/claude-code-review.yml | 25 +++++++++++++------- .github/workflows/claude.yml | 29 +++++++++--------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 7d89fecd..8c90580b 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -1,4 +1,4 @@ -name: Claude Experimental Review Mode +name: Claude Code Review on: issue_comment: @@ -11,6 +11,7 @@ jobs: github.event.issue.pull_request && contains(github.event.comment.body, '@claude review') runs-on: ubuntu-latest + timeout-minutes: 30 permissions: contents: read pull-requests: write @@ -21,20 +22,28 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 0 # Full history for better diff analysis + ref: refs/pull/${{ github.event.issue.number }}/head + fetch-depth: 1 - - name: Code Review with Claude (Experimental) - uses: anthropics/claude-code-action@beta + - name: Code Review with Claude + uses: anthropics/claude-code-action@v1 with: - mode: experimental-review anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - timeout_minutes: "30" - custom_instructions: | - Focus on: + track_progress: true + prompt: | + REPO: ${{ github.repository }} + PR NUMBER: ${{ github.event.issue.number }} + + Please review this pull request with a focus on: - Code quality and maintainability - Security vulnerabilities - Performance issues - Best practices and design patterns + Follow the repository guidance in AGENTS.md. Be constructive and provide specific suggestions for improvements. Use GitHub's suggestion format when proposing code changes. + Use inline comments for specific code issues and a top-level PR comment for summary feedback. + Only post GitHub comments - do not submit the review text as a workflow message. + claude_args: | + --allowedTools "Read,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)" diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index c7452332..8dfba574 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -13,15 +13,18 @@ on: jobs: claude: if: | - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'issue_comment' && + contains(github.event.comment.body, '@claude') && + !(github.event.issue.pull_request && contains(github.event.comment.body, '@claude review'))) || (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 + timeout-minutes: 60 permissions: - contents: read - pull-requests: read - issues: read + contents: write + pull-requests: write + issues: write id-token: write actions: read # Required for Claude to read CI results on PRs steps: @@ -32,7 +35,7 @@ jobs: - name: Run Claude Code id: claude - uses: anthropics/claude-code-action@beta + uses: anthropics/claude-code-action@v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} @@ -40,22 +43,12 @@ jobs: additional_permissions: | actions: read - # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4) - # model: "claude-opus-4-20250514" - # Optional: Customize the trigger phrase (default: @claude) # trigger_phrase: "/claude" # Optional: Trigger when specific user is assigned to an issue # assignee_trigger: "claude-bot" - # Optional: Allow Claude to run specific commands - # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)" - - # Optional: Add custom instructions for Claude to customize its behavior for your project - custom_instructions: | - follow rules from CLAUDE.md - - # Optional: Custom environment variables for Claude - # claude_env: | - # NODE_ENV: test + # Optional: Pass advanced arguments to Claude CLI + claude_args: | + --append-system-prompt "Follow the repository guidance in AGENTS.md." From 4d9c124700791aa2ca7ff18ca92185864688a1ee Mon Sep 17 00:00:00 2001 From: KM Koushik Date: Mon, 18 May 2026 11:06:31 +1000 Subject: [PATCH 2/2] chore: remove Claude workflows Entire-Checkpoint: 3b66c252f834 --- .github/workflows/claude-code-review.yml | 49 --------------------- .github/workflows/claude.yml | 54 ------------------------ 2 files changed, 103 deletions(-) delete mode 100644 .github/workflows/claude-code-review.yml delete mode 100644 .github/workflows/claude.yml diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml deleted file mode 100644 index 8c90580b..00000000 --- a/.github/workflows/claude-code-review.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Claude Code Review - -on: - issue_comment: - types: [created] - -jobs: - code-review: - # Run when someone comments "@claude review" on a PR conversation - if: | - github.event.issue.pull_request && - contains(github.event.comment.body, '@claude review') - runs-on: ubuntu-latest - timeout-minutes: 30 - permissions: - contents: read - pull-requests: write - issues: write - id-token: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - ref: refs/pull/${{ github.event.issue.number }}/head - fetch-depth: 1 - - - name: Code Review with Claude - uses: anthropics/claude-code-action@v1 - with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - track_progress: true - prompt: | - REPO: ${{ github.repository }} - PR NUMBER: ${{ github.event.issue.number }} - - Please review this pull request with a focus on: - - Code quality and maintainability - - Security vulnerabilities - - Performance issues - - Best practices and design patterns - - Follow the repository guidance in AGENTS.md. - Be constructive and provide specific suggestions for improvements. - Use GitHub's suggestion format when proposing code changes. - Use inline comments for specific code issues and a top-level PR comment for summary feedback. - Only post GitHub comments - do not submit the review text as a workflow message. - claude_args: | - --allowedTools "Read,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)" diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml deleted file mode 100644 index 8dfba574..00000000 --- a/.github/workflows/claude.yml +++ /dev/null @@ -1,54 +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.issue.pull_request && contains(github.event.comment.body, '@claude review'))) || - (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 - timeout-minutes: 60 - permissions: - contents: write - pull-requests: write - issues: write - id-token: write - actions: read # Required for Claude to read CI results on PRs - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - - name: Run Claude Code - id: claude - uses: anthropics/claude-code-action@v1 - 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 - - # Optional: Customize the trigger phrase (default: @claude) - # trigger_phrase: "/claude" - - # Optional: Trigger when specific user is assigned to an issue - # assignee_trigger: "claude-bot" - - # Optional: Pass advanced arguments to Claude CLI - claude_args: | - --append-system-prompt "Follow the repository guidance in AGENTS.md."