Skip to content

Commit e5b951d

Browse files
add claude code new workflow
1 parent b57e344 commit e5b951d

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "+ Claude Code / Documentation Review"
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
documentation-review:
13+
name: Review doc changes
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # Needed to access base branch for git diff
21+
22+
- name: Run Claude Code to analyze changes
23+
uses: anthropics/claude-code-action@v1
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
27+
prompt: |
28+
You are reviewing a PR to verify Claude Code integration works.
29+
30+
**Task**:
31+
1. Run: git diff origin/${{ github.base_ref }}...HEAD
32+
2. List all changed files
33+
3. For each file, provide a 1-sentence summary of what changed
34+
35+
Keep it concise - this is just a verification test.
36+
37+
**Output format**:
38+
## Changed Files
39+
- `path/to/file1.py` - Brief description
40+
- `path/to/file2.yml` - Brief description
41+
42+
## Summary
43+
[One sentence about the overall change]
44+
claude_args: >-
45+
--max-turns 10
46+
--model claude-sonnet-4-5-20250929

0 commit comments

Comments
 (0)