Fix mv read loop hardcoding 4 instead of nnode #788
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claude Code Review | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, ready_for_review, reopened] | |
| jobs: | |
| claude-review: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| actions: read | |
| id-token: write | |
| steps: | |
| - name: Install unzip (required by bun setup) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y unzip | |
| # IMPORTANT: checkout BASE repo only (safe on forks) | |
| - name: Checkout base repo (safe) | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run Claude Code Review | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| github_token: ${{ github.token }} | |
| plugin_marketplaces: "https://github.com/anthropics/claude-code.git" | |
| plugins: "code-review@claude-code-plugins" | |
| # NOTE: do NOT use --dangerouslyDisableSandbox (it can crash the CLI). | |
| # This flag is for non-interactive CI runs (bypasses approval prompts). | |
| claude_args: > | |
| --dangerously-skip-permissions | |
| --max-turns 90 | |
| --allowedTools | |
| "Bash" | |
| prompt: | | |
| You are running in pull_request_target. | |
| DO NOT read or inspect any checked-out PR/fork code. Review ONLY using GitHub API/gh commands. | |
| You may read local guidance ONLY from: | |
| - ./CLAUDE.md (root) if present | |
| - ./.claude/rules/*.md if present (max 10 files) | |
| Keep tool calls minimal and in this order: | |
| 1) ls -1 .claude/rules 2>/dev/null || true | |
| 2) cat CLAUDE.md 2>/dev/null || true | |
| 3) find .claude/rules -maxdepth 1 -name "*.md" -print | head -n 10 | xargs -I{} cat "{}" 2>/dev/null || true | |
| 4) gh pr view ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --json title,body,files,changedFiles,additions,deletions,headRefOid | |
| 5) gh pr diff ${{ github.event.pull_request.number }} --repo ${{ github.repository }} | |
| 6) Post ONE top-level PR comment titled "Claude Code Review", then STOP. | |
| Output format: | |
| - Head SHA | |
| - Files changed count + list up to 10 file paths | |
| - Summary (3–6 bullets, minimal) | |
| - Findings with file + line numbers when possible | |
| - If no issues: 0–3 improvement opportunities (only if confident) | |
| If posting is blocked, write the full review to the GitHub Actions job summary instead, then STOP. | |
| additional_permissions: | | |
| actions: read |