Repository navigation
Releases
v1.0.0
The first release of the shared Claude review workflow, .github/workflows/claude-review.yml. It asks the Claude code-review routine to review a pull request.
Three ways to request a review
- Ready: a non-draft pull request is opened or reopened, or a draft is marked ready for review. Drafts, pull requests from bots and pull requests from forks are skipped.
- Comment command: a comment whose first line starts with
@cipherstash-agent review. Anything afterreviewis passed to the review as instructions, capped at 2,000 characters. Works on drafts and forks. The comment gets a 👀 reaction once the request is sent. - Requested reviewer: request
cipherstash-agentin a pull request's Reviewers box. Works on drafts, not on forks.
Who can request a review
Only members of the @cipherstash/developers team (the team input). Membership is checked with a short-lived token from a GitHub App that has only "Members: read". If the check cannot be made, the request is skipped with an error in the run. Comments and requests from bots and from cipherstash-agent itself never request a review. A pull request opened by cipherstash-agent is reviewed on Ready without a check.
A failed request never turns a pull request's checks red; it shows as an error in the workflow run.
Adding it to a repository
Copy examples/claude-review.yml to .github/workflows/claude-review.yml. It pins this release by commit:
uses: cipherstash/workflows/.github/workflows/claude-review.yml@38f13f4210ddc6e81d4e8ac69011ceb1069880c6 # v1.0.0The caller passes:
| Name | Kind | Passed as |
|---|---|---|
CLAUDE_ROUTINE_TOKEN |
organisation secret | secret CLAUDE_ROUTINE_TOKEN |
CLAUDE_REVIEW_APP_PRIVATE_KEY |
organisation secret | secret CLAUDE_REVIEW_APP_PRIVATE_KEY |
CLAUDE_ROUTINE_TRIGGER_ID |
organisation variable | input routine-trigger-id |
CLAUDE_REVIEW_APP_CLIENT_ID |
organisation variable | input app-client-id |
Optional inputs: team (default developers) and review-agent (default cipherstash-agent).
The comment command works only once the caller is on the repository's default branch, because GitHub runs comment workflows from there. The full rules are in the README.