Bump spec_tests/hed-schemas from 5b6b5c3 to c3d84e2
#130
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: | |
| # Same-repo branches: full access to secrets and write permissions | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review, reopened] | |
| # Fork PRs: runs in base repo context with secrets access | |
| pull_request_target: | |
| types: [opened, synchronize, ready_for_review, reopened] | |
| jobs: | |
| claude-review: | |
| # Avoid duplicate runs: use pull_request for same-repo, pull_request_target for forks | |
| # Skip bot PRs (dependabot, renovate, etc.) and draft PRs | |
| if: | | |
| !github.event.pull_request.draft && | |
| github.event.pull_request.user.type != 'Bot' && | |
| !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) && | |
| !(github.event_name == 'pull_request_target' && !github.event.pull_request.head.repo.fork) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: read | |
| id-token: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Use base.sha, not head.sha: checking out fork code under | |
| # pull_request_target would give untrusted code access to secrets. | |
| # Claude reads changes via gh pr diff (API), not the local checkout. | |
| ref: ${{ github.event.pull_request.base.sha }} | |
| fetch-depth: 1 | |
| - name: Run Claude Code Review | |
| id: claude-review | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| additional_permissions: | | |
| actions: read | |
| prompt: | | |
| REPO: ${{ github.repository }} | |
| PR NUMBER: ${{ github.event.pull_request.number }} | |
| Review this pull request thoroughly. For each issue found: | |
| 1. Classify severity: critical, important, or suggestion | |
| 2. For critical and important issues: describe exactly what needs to change | |
| 3. For suggestions: only mention if they clearly improve code quality | |
| Follow the project's code style: ruff formatting, Google-style docstrings, | |
| 120-char line length, PEP 8. Check for correctness, test coverage, and | |
| backward compatibility. | |
| Do not flag stylistic preferences or false positives. | |
| Use `gh pr comment` for top-level feedback summary. | |
| Use `mcp__github_inline_comment__create_inline_comment` to highlight specific code issues. | |
| Only post GitHub comments; do not submit review text as messages. | |
| claude_args: | | |
| --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Read,Glob,Grep" |