Skip to content

GitHub Action ​

The repo ships a composite GitHub Action at the root (action.yml) that wraps the review command for use on pull requests. This page documents its inputs and outputs; for a working workflow, see Use the GitHub Action.

Inputs ​

InputDescriptionDefault
pr-refPR reference (URL, owner/repo#number, or bare PR number for the current repo)the PR that triggered the workflow
patternsComma-separated additional pattern directories""
min-severityMinimum severity to report (info, warning, critical, blocking). Empty falls through to .planwerk/config.yaml review.min-severity, then to the compiled-in info(empty)
formatOutput format written to the action log (markdown, json); posting always uses markdown. Empty falls through to .planwerk/config.yaml review.format, then to the compiled-in markdown(empty)
max-findingsCap on findings returned (0 disables cap)0
post-inlinePost inline review comments and a summary via the GitHub Review APItrue
thoroughRun the additional adversarial review passfalse
structure-modelModel for the mechanical JSON-structuring passes, independent of the main review model (env: PLANWERK_STRUCTURE_MODEL). Empty keeps the compiled-in default (sonnet).""
structure-effortReasoning effort for the JSON-structuring passes (low, medium, high, xhigh, max; env: PLANWERK_STRUCTURE_EFFORT). Empty keeps the compiled-in default (xhigh).""
localReview the repository actions/checkout already placed in the runner workspace (passes --local) instead of cloning it a second time. See Local mode in CI.false
versionplanwerk-agent release tag to install (latest resolves to the most recent release)latest
binary-pathPath to a pre-built binary; skips the download step (used by the in-repo smoke test)""
github-tokenToken used to fetch PR data and post review comments (pull-requests: write)${{ github.token }}
anthropic-api-keyAnthropic API key consumed by Claude Code in non-interactive mode (required)—

Outputs ​

OutputDescription
findings-countTotal number of findings reported
blocking-countNumber of BLOCKING findings
critical-countNumber of CRITICAL findings
warning-countNumber of WARNING findings
info-countNumber of INFO findings

Counts are extracted by parsing the <!-- planwerk-agent-data ... --> JSON block embedded in the posted PR review/comment, so they reflect the same set of findings the reviewer sees on the PR. The same block also carries a usage object with the Run's Claude token totals and estimated cost — see Claude Usage Totals — available for extraction the same way.