[IM-3530] Make claude-review.yml reusable and configurable#23
Merged
jaysonv0341 merged 1 commit intomainfrom Mar 9, 2026
Merged
[IM-3530] Make claude-review.yml reusable and configurable#23jaysonv0341 merged 1 commit intomainfrom
jaysonv0341 merged 1 commit intomainfrom
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extra_prompt,timeout_minutesinputs so callers can customize behavior without forking the workflowuse_sticky_comment: truefor a single updating PR commentgithub_tokenso comments are posted by the Claude bot instead of the GitHub Actions botAdoption
Repos with an existing standalone
claude.ymlcan replace it with:Test plan
🤖 Generated with Claude Code
📝 Auto-filled