mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
- Add dedicated issue deduplication workflow example - Add issue triage example (moved from .github/workflows) - Update all examples to use v1-dev branch consistently - Enable MCP tools in claude-auto-review.yml - Consolidate PR review examples into single comprehensive example Hero use cases now covered: 1. Code reviews (claude-auto-review.yml) 2. Issue triaging (issue-triage.yml) 3. Issue deduplication (issue-deduplication.yml) 4. Auto-fix CI failures (auto-fix-ci/auto-fix-ci.yml) All examples updated to follow v1-dev paradigm with proper prompt and claude_args configuration.
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Claude Experimental Review Mode
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
jobs:
|
|
code-review:
|
|
# Run on PR events, or when someone comments "@claude review" on a PR
|
|
if: |
|
|
github.event_name == 'pull_request' ||
|
|
(github.event_name == 'issue_comment' &&
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '@claude review'))
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
issues: write
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # Full history for better diff analysis
|
|
|
|
- name: Code Review with Claude
|
|
uses: anthropics/claude-code-action@v1-dev
|
|
with:
|
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
# github_token not needed - uses default GITHUB_TOKEN for GitHub operations
|
|
timeout_minutes: "30"
|
|
prompt: |
|
|
Review this pull request comprehensively.
|
|
|
|
Focus on:
|
|
- Code quality and maintainability
|
|
- Security vulnerabilities
|
|
- Performance issues
|
|
- Best practices and design patterns
|
|
- Test coverage gaps
|
|
|
|
Be constructive and provide specific suggestions for improvements.
|
|
Use GitHub's suggestion format when proposing code changes.
|