Documentation enhancements: - Add inline thinking keywords section (think, think hard, ultrathink) with usage examples - Create examples/github-actions/ directory with 3 ready-to-use workflows: * Auto PR review with inline comments * Security review on every PR * Issue triage with label suggestions - Add comprehensive IMPROVEMENT_RECOMMENDATIONS.md with prioritized action items Improvements based on zebbern/claude-code-guide analysis: - Enhanced troubleshooting guidance - Format enhancements (badges, collapsible tables, C-style comments) - Security/performance/workflow pitfalls sections - DeepSeek integration documentation - One-shot health check scripts Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
31 lines
1 KiB
YAML
31 lines
1 KiB
YAML
name: Auto review PRs
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
auto-review:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Claude PR review
|
|
uses: anthropics/claude-code-action@main
|
|
with:
|
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
# Claude will fetch the diff and leave inline comments
|
|
direct_prompt: |
|
|
Review this pull request's diff for correctness, readability, testing, performance, and DX.
|
|
Prefer specific, actionable suggestions. Use inline comments where relevant.
|
|
# GitHub tools permitted during the run:
|
|
allowed_tools: >-
|
|
mcp__github__get_pull_request_diff,
|
|
mcp__github__create_pending_pull_request_review,
|
|
mcp__github__add_comment_to_pending_review,
|
|
mcp__github__submit_pending_pull_request_review
|