Skip to content

ci: add Claude Code PR review, as in the cli repo - #152

Merged
riglar merged 1 commit into
mainfrom
ci/claude-code-review
Nov 2, 2026
Merged

riglar merged 1 commit into
mainfrom
ci/claude-code-review

Conversation

@riglar

@riglar riglar commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Adds automatic Claude Code review to every PR, using the same setup as devicecloud-dev/cli.

What's in it

  • .github/workflows/claude-code-review.yml is copied from cli's workflow. It runs the code-review plugin on Opus 5.5 and posts inline comments. It keeps cli's fixes from past failures:

    • an explicit allowed-tools list;
    • a prompt that stops reviewers running in the background and ending the session early;
    • a final step that fails the check if Claude never posted anything.
  • One change from cli: the skip rule. This repo has no release-please or back-merge PRs, so it only skips forks and bot-opened PRs, which can't get the token.

  • CLAUDE.md: the review checks changes against it. It lists the rules that break the site if missed:

    • renaming a title in SUMMARY.md changes its URL and needs a redirect;
    • every page must be in SUMMARY.md;
    • link text must be a real title;
    • security/ip-addresses.md is generated, so it must never be hand-edited.

    The site build excludes it, so it isn't published.

Before merging

  • Give this repo access to the org secret CLAUDE_CODE_OAUTH_TOKEN. It's currently shared with selected repos only, and docs isn't one of them.
  • Check that the Claude GitHub App is installed on this repo, the same as on cli.

This PR won't review itself. The action only runs its workflow file once that file is on main. Expect the review check to pass with a notice here. The first real review will be on the next PR.

🤖 Generated with Claude Code

Copies devicecloud-dev/cli's claude-code-review.yml: the code-review plugin
on Opus 5.5, with explicit allowed tools, a stay-in-the-foreground prompt,
and a step that fails when no review is posted. The skip rule is simpler,
because this repo has no release-please or back-merge PRs.

Adds a short CLAUDE.md so the review checks this repo's rules, such as
SUMMARY.md setting URLs and the generated IP-addresses page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@riglar
riglar merged commit adf2d7a into main Nov 2, 2026
2 checks passed
@riglar
riglar deleted the ci/claude-code-review branch November 2, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant