Skip to content

feat(claude-code-review): add opt-in approve mode - #56

Merged
MaximusHaximus merged 1 commit into
mainfrom
feat/claude-review-approve-mode
Aug 20, 2026
Merged

feat(claude-code-review): add opt-in approve mode#56
MaximusHaximus merged 1 commit into
mainfrom
feat/claude-review-approve-mode

Conversation

@MaximusHaximus

Copy link
Copy Markdown
Contributor

Summary

  • Adds an opt-in mode input to the shared apps-claude-code-review.yml reusable workflow: comment (default, unchanged behaviour) or approve.
  • mode: approve ports the approver-verdict flow added in polygon-core-plugins PR feat(claude-review): inject team standards via isolated two-job fetch #46 — Claude reads the diff and submits an actual pull-request review verdict via the GitHub CLI (approve or request-changes) instead of just posting a comment, including stale-approval dismissal and standing changes-requested carry-over across pushes.
  • Also gates the job on draft == false, since a verdict on unfinished work is meaningless (this applies to both modes, but matters most for approve).
  • Documents the opt-in in the canonical trigger example (apps-claude-code-review-trigger.yml), commented out since the default stays comment.

No behaviour change for any existing consumer — mode defaults to comment, which is byte-for-byte the same step as before.

Motivation

polygon-core-plugins wired this up directly (its own repo isn't on the shared-workflow convention). Other Apps Team repos consume the shared apps-claude-code-review.yml via a thin trigger file, so per team-standards ("consume shared workflows, don't maintain inline copies"), the approver flow needed to live here instead of being copy-pasted into each repo that wants it.

Test plan

  • YAML parses (python3 -c "import yaml; yaml.safe_load(...)")
  • pnpm exec changeset status --since=origin/main — no workspace package files touched, no changeset needed
  • Exercise mode: approve end-to-end against a real PR (polygon-technology-site, once this merges)

Ports the approver-verdict flow from polygon-core-plugins PR 46 into the
shared apps-claude-code-review.yml workflow so Apps Team repos can adopt
it without maintaining an inline copy. New mode input defaults to
comment (existing behaviour, unaffected); mode: approve has Claude
submit a real pull-request review verdict via the GitHub CLI that counts
toward branch-protection required reviews, with stale-approval dismissal
and standing changes-requested carry-over. Also skips drafts.
@MaximusHaximus
MaximusHaximus marked this pull request as ready for review July 30, 2026 15:08
@MaximusHaximus
MaximusHaximus merged commit 52496ef into main Aug 20, 2026
8 of 9 checks passed
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.

2 participants