ci: migrate Claude auto-review workflow from old docs repo#127
ci: migrate Claude auto-review workflow from old docs repo#127samgutentag wants to merge 3 commits into
Conversation
Ports .github/workflows/claude-review.yaml from trunk-io/docs. Runs claude-code-action on PRs to review docs for typos, grammar, formatting, and docs best practices, then auto-approves when the structured review passes. Skips trunk-merge/ branches. Requires the ANTHROPIC_API_KEY repo secret (not yet set on docs2). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The approve step ran fromJSON(structured_output), which throws
"template is not valid" when the review step emits no output. That
happens on the PR that introduces the workflow (claude-code-action
self-skips until the file is on the default branch), and would also
happen if the API key were missing or the action errored.
Default the empty case to '{}' so the gate skips cleanly instead of
failing the job.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Drop the auto-approve step so the workflow only leaves inline review comments. Removes gh pr review from allowed tools (Claude can no longer approve), drops the now-unused JSON schema and review_passed prompt, and renames the check to "Claude Docs Review" to shed the "Auto" connotation. Not a required status check; runs on every PR but never blocks merge. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Verification status (2026-05-29): Could not determine rollout state from available signals. Chaining to
Next: this is a CI/infra PR, not a feature doc. Merge on the usual code-review basis once the |
|
Code verification (2026-05-29): no claim candidates found This PR adds a single CI workflow file ( The file's only Trunk-specific reference is the No draft change or label from this skill. (Chained automatically because |
|
Verification status (May 31, 2026): No eng PR references, no Linear ticket, and no LaunchDarkly flag detected — cannot determine shipping readiness automatically.
Next action: author or reviewer to confirm whether the CI workflow changes are live in prod, then update verdict. Generated by Claude Code |
|
Docs Verify Sweep · June 1, 2026 · ❓ unknown Could not determine feature status — no linked eng PR or feature flag found, or signals were unclear. Manual review required. Unchanged from previous sweep (May 31, 2026). Generated by Claude Code |
|
Verification status: unknown - June 2, 2026 Could not determine rollout state from available signals.
Generated by Claude Code |
What
Migrates the Claude review workflow from the old
trunk-io/docsrepo to docs2, as an advisory-only docs reviewer.On every PR,
anthropics/claude-code-actionreviews the diff for typos, grammar, formatting, and docs best practices and leaves inline comments. It does not approve or merge, and it is not a required status check, so it never blocks a merge. PRs ontrunk-merge/branches are skipped.Blocker before this works
docs2 has no
ANTHROPIC_API_KEYsecret (the old docs repo had it). The review step will keep skipping until an org admin adds it:Secrets are write-only, so the admin needs the key value on hand from wherever Trunk stores it.
Why the check is green but the review hasn't run
GitHub won't let a code-review action run with write permissions from a PR branch until the identical workflow file is on the default branch. On this PR (which introduces the file) the action self-skips by design and only starts working once merged to
main. The first real review lands on the next PR after this merges (and after the secret is set). A green check here means "the reviewer correctly stayed out of the way," not "the reviewer ran."Notes
actions/checkout@v6from the source; the other two docs2 workflows pin@v4. Cosmetic..yamlto match the source; the other docs2 workflows use.yml. Cosmetic.samgutentag/gutils(templates/github-workflows/), including notes on switching it to auto-approve later if wanted.🤖 Generated with Claude Code