Skip to content

Update all non-major dependencies #206

Update all non-major dependencies

Update all non-major dependencies #206

# .github/workflows/claude-code-review.yml
name: Claude Code Review
on:
pull_request:
branches:
- main
- develop
types: [opened, synchronize, labeled]
jobs:
claude-review:
runs-on: ubuntu-latest
if: |
(github.event.action == 'opened') ||
(github.event.action == 'labeled' && github.event.label.name == 'claude-review') ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'claude-review'))
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 1
- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@beta
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
# model: "claude-opus-4-20250514"
# Direct prompt for automated review (no @claude mention needed)
direct_prompt: |
Please review this pull request and provide feedback on:
- Code quality and best practices
- Potential bugs or issues
- Performance considerations
- Security concerns
- Test coverage
Be constructive and helpful in your feedback.
# Reuse the same comment on subsequent pushes
use_sticky_comment: true
- name: Remove claude-review label
# Remove label whether success or failure - prevents getting stuck
if: always() && github.event.action != 'opened'
uses: actions/github-script@v8
with:
script: |
try {
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'claude-review'
});
} catch (error) {
console.log('Label not found or already removed');
}