Publish a reusable action.yml for Codewhale review (after 0.10.1)
Goal: any user can add Codewhale to their own repository in a few minutes — PR review and @codewhale mentions that do work — using their own model key or their Codewhale account. Ship alongside 0.10.1 (Hmbown/Codewhale#6458) because the action installs a released, checksummed codewhale binary. Owner: the main Codewhale agent.
Today .github/workflows/codewhale-review.yml builds Codewhale from source inside this repo, so it cannot be reused elsewhere.
Scope:
- A composite
action.ymlat the repo root (usable asuses: Hmbown/[email protected]and a moving major tag) that downloads the release binary for the runner OS/arch and verifies its checksum; no build from source. - Modes:
review(pull_request: one review with inline comments, never approves) andmention(issue_comment / pull_request_review_comment containing@codewhale: only OWNER/MEMBER/COLLABORATOR or write-access authors; bots refused; GitHub text wrapped as untrusted; work on acodewhale/*branch with a draft PR; status comment edited in place). - Credentials: BYOK provider key secrets (DeepSeek, Anthropic, OpenRouter, Z.ai, ModelStudio, …) or a Codewhale account machine key (
CODEWHALE_API_KEY) routed through the relay;github.tokenby default, optional GitHub App. Fork PRs never receive secrets. - Inputs: mode, model, provider, review policy, max chars/passes/budget; outputs: review/PR URL, receipt.
- Docs: a user-facing setup page (copy-paste workflow YAML for review and for mentions, required permissions, secret setup, cost notes) and a README section.
- This repo's own
codewhale-review.ymlbecomes a thin caller of the action so there is one implementation.
Relationship to the hosted GitHub App (Codewhale Apps team, private): the action is the self-hosted path that runs in the user's own Actions; the hosted App is the managed path. Both must share the same permission gate and untrusted-context rules.
Acceptance: the action runs in this repo's CI through the thin caller; a fresh test repository completes one review and one mention round trip using only the documented setup; release tags pin the action.
2026-09-29 implementation claim: PR-agent recovery chat owns root action.yml, scripts/github-action/*, docs/GITHUB_ACTION.md, README setup link, and .github/workflows/codewhale-review.yml. Released-binary review entry point, account relay routing, revision validation and explicit receipts. Preserve unrelated skills/runtime changes. Mention execution and live canary remain acceptance items; source evidence alone does not complete this issue.
Source: Hmbown/CodeWhale