Skip to content

ci: review pull requests with claude on the ai-review label - #40

Merged
wzslr321 merged 2 commits into
mainfrom
ci/lean-review
Oct 24, 2026
Merged

wzslr321 merged 2 commits into
mainfrom
ci/lean-review

Conversation

@wzslr321

@wzslr321 wzslr321 commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

What

Adding the ai-review label to a pull request runs a Claude review that comments on the lines concerned. It checks the diff against AGENTS.md, doc/code-quality.md, doc/design.md and the PR description, and .github/ai-review.md says how. The first commit writes down in AGENTS.md and doc/code-quality.md the rules that earlier reviews kept repeating.

Why

This is the automatic review pilot agreed on the AI Workplace weekly of 22.10, with one API key and one spend limit for LeanCode in the private leancodepl/lean-review-action. Cursor Automations were dropped: on the Teams plan an automation bills the person who created it. The repeated rules were not written down, and neither the review nor a coding agent could follow them.

How

A public repository cannot use an action from a private one through uses:, and the workflow checks it out into .lean-review with a read-only deploy key. The action reads maintainers' review comments from earlier PRs on the changed files (pull-requests: read) and comments as the Claude GitHub App (id-token: write). Start in .github/ai-review.md.

Not here

The prompt, the model and the comment collection live in leancodepl/lean-review-action. A second pass that checks each finding before it is posted is left out for now.

@wzslr321 wzslr321 added the ai-review Runs a Claude review on this pull request label Oct 24, 2026
@wzslr321
wzslr321 marked this pull request as ready for review October 24, 2026 19:35
@wzslr321
wzslr321 merged commit 1a7225c into main Oct 24, 2026
10 checks passed
@wzslr321
wzslr321 deleted the ci/lean-review branch October 24, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Runs a Claude review on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant