You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make claude-review.yml reusable and configurable (#23)
- Add `extra_prompt` input so callers can append repo-specific review
rules without forking the workflow
- Add `timeout_minutes` input so callers can override the job timeout
(default: 15) and now using that instead of the hardcoded 15
- Make `claude_args` use `${{ inputs.model }}` and
`${{ inputs.max_turns }}` consistently
- Add `use_sticky_comment: true` so subsequent PR pushes update the
existing review comment, instead of creating new ones
- Remove `github_token` so comments are posted by the Claude bot, not
the GitHub Actions bot
- Embed the full review rubric directly in the prompt (security,
compliance, data/migrations, performance, testing, APIs, dependencies)
so callers inherit it automatically
- Strip all platform/framework-specific content from the base rubric (no
iOS/Android, no specific linter names, no mobile-only bullet points)
to keep it generic for all repos
To adopt in any repo (replacing an existing standalone claude.yml):
# .github/workflows/claude.yml
name: Claude Code – PR Review
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
review:
uses: isapp/.github/.github/workflows/claude-review.yml@main
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
with:
# Optional — only specify what differs from the defaults:
max_turns: 25 # default: 15
timeout_minutes: 25 # default: 15
extra_prompt: | # default: "" (nothing appended)
## Repo-Specific Rules
- Example rule A
- Example rule B
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments