Repository navigation
add the claude review and @claude workflows - #10
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 of 5 tasks
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.
What this changes
Adds Claude reviews to the docs repo, modeled on the review we run in our other repos (same action,
anthropics/claude-code-action@v1, same token secretCLAUDE_CODE_OAUTH_TOKEN, same model), with a prompt written for these docs and the same fork-safe setup as patch-it-dev/patch-it-plugins#105..github/workflows/claude-code-review.yml: an automatic review, once per PR (pull_requesttypesopened,ready_for_review,reopened; drafts skipped). The prompt checks:/guides/cli/match a page undersrc/content/docs/, anchors match a heading, relative links and images exist;It verifies with
npm ciandnpm run build..github/workflows/claude.yml: a maintainer mentions@claude(in particular@claude reviewon a fork's PR) and Claude answers read-only, with the same checklist.README.md: a Reviews section.No ticket: this is a repo-setup change.
Fork safety (same as patch-it-plugins#105)
if:github.event.pull_request.head.repo.full_name == github.repository)@claude review(claude.yml)author_associationisOWNER,MEMBERorCOLLABORATOR; the action then checks write access itselfpull_request_target.CLAUDE.md,AGENTS.md,.claude/, ...) from the base branch, and denies commands that run repo code for authors without write access (action security docs).claude.ymlis read and comment only on top of that:--permission-mode default, allowedRead,Grep,Glob,gh pr view/diff,gh issue view, inline comments; deniedEdit,Write,WebFetch,WebSearch, git add/rm/commit/push and the action's commit tools. Noissues: openedtrigger, noallowed_bots.npm ciandnpm run build, nothing else.display_report: falseand a diagnostics step that prints only blocked tool names: run summaries are public.The token
Until the token is available the review skips with a notice instead of failing. This repo is public, so it gets the org-wide
CLAUDE_CODE_OAUTH_TOKEN; nothing to set here. Needs the Claude GitHub App, already installed org-wide. A PR that edits these workflows can't run them, so they take effect after merge.Calls I made (please check)
CONTRIBUTORand be ignored by@claudehere.Related PRs
🤖 Generated with Claude Code