docs: Minor touch ups #33
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: Code review | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| types: [opened, synchronize, ready_for_review, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| concurrency: | |
| group: code-review-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| code-review: | |
| # Skip drafts. | |
| if: ${{ !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run code review | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| allowed_bots: "claude[bot]" | |
| prompt: | | |
| Review PR #${{ github.event.pull_request.number }} in ${{ github.repository }}. | |
| Get the diff: gh pr diff ${{ github.event.pull_request.number }} | |
| Read and follow the instructions in .github/prompts/code-review.md | |
| claude_args: >- | |
| --allowedTools Read,Glob,Grep,Skill,Task,Bash(gh:*),mcp__github_inline_comment__* | |
| env: | |
| # Required by gh CLI to fetch PR diffs and post review comments. | |
| GH_TOKEN: ${{ github.token }} |