Skip to content

Commit 622e074

Browse files
committed
ci: add comprehensive PR review workflow
1 parent fb28239 commit 622e074

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: PR Review with Progress Tracking
2+
3+
# This example demonstrates how to use the track_progress feature to get
4+
# visual progress tracking for PR reviews, similar to v0.x agent mode.
5+
6+
on:
7+
pull_request:
8+
types: [opened, synchronize, ready_for_review, reopened]
9+
10+
jobs:
11+
review-with-tracking:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
id-token: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v5
20+
with:
21+
fetch-depth: 1
22+
23+
- name: PR Review with Progress Tracking
24+
uses: anthropics/claude-code-action@v1
25+
with:
26+
anthropic_api_key: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
27+
28+
# Enable progress tracking
29+
track_progress: true
30+
31+
# Your custom review instructions
32+
prompt: |
33+
REPO: ${{ github.repository }}
34+
PR NUMBER: ${{ github.event.pull_request.number }}
35+
36+
Perform a comprehensive code review with the following focus areas:
37+
38+
1. **Code Quality**
39+
- Clean code principles and best practices
40+
- Proper error handling and edge cases
41+
- Code readability and maintainability
42+
43+
2. **Security**
44+
- Check for potential security vulnerabilities
45+
- Validate input sanitization
46+
- Review authentication/authorization logic
47+
48+
3. **Performance**
49+
- Identify potential performance bottlenecks
50+
- Review database queries for efficiency
51+
- Check for memory leaks or resource issues
52+
53+
4. **Testing**
54+
- Verify adequate test coverage
55+
- Review test quality and edge cases
56+
- Check for missing test scenarios
57+
58+
5. **Documentation**
59+
- Ensure code is properly documented
60+
- Verify README updates for new features
61+
- Check API documentation accuracy
62+
63+
Provide detailed feedback using inline comments for specific issues.
64+
Use top-level comments for general observations or praise.
65+
66+
# Tools for comprehensive PR review
67+
claude_args: |
68+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
69+
70+
# When track_progress is enabled:
71+
# - Creates a tracking comment with progress checkboxes
72+
# - Includes all PR context (comments, attachments, images)
73+
# - Updates progress as the review proceeds
74+
# - Marks as completed when done

0 commit comments

Comments
 (0)