Claude Code doc review exp #4
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 / Documentation Review" | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| documentation-review: | |
| name: Review doc changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Needed to access base branch for git diff | |
| - name: Run Claude Code to analyze changes | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| prompt: | | |
| You are reviewing a PR to verify Claude Code integration works. | |
| **Task**: | |
| 1. Run: git diff origin/${{ github.base_ref }}...HEAD | |
| 2. List all changed files | |
| 3. For each file, provide a 1-sentence summary of what changed | |
| Keep it concise - this is just a verification test. | |
| **Output format**: | |
| ## Changed Files | |
| - `path/to/file1.py` - Brief description | |
| - `path/to/file2.yml` - Brief description | |
| ## Summary | |
| [One sentence about the overall change] | |
| claude_args: >- | |
| --max-turns 10 | |
| --model claude-sonnet-4-5-20250929 |