Skip to content

ci: Review is a job of the PR's own workflow, and Ready goes - #31

Merged
silveltman merged 3 commits into
mainfrom
ci/review-check
Nov 22, 2026
Merged

silveltman merged 3 commits into
mainfrom
ci/review-check

Conversation

@silveltman

@silveltman silveltman commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Ready made up 80 to 85 percent of all Actions runs in every repository (fulldev: ~4,850 a week), because each PR push, Check or Test event and Netlify status started a run that reconciled every open PR.

  • New .github/actions/review: a caller's last PR job, named Review, calls it. It fails on a draft, without needs, or unless every job it needs succeeded (a skipped one too, since GitHub counts a skipped required check as passed), then waits for the listed Netlify previews of the head. For a CloudCannon publication it then turns on auto-merge with a merge commit, and fails if GitHub refuses, so a publication never waits unseen.
  • The ruleset's Review context (GitHub Actions) accepts this check, so no rule changes.
  • ready.yml, ci-ready.yml and their tests go. Callers keep the Ready of the SHA they pin until they move over.
  • Test selects every target when the calling workflow changes, since callers now put Test in their Check workflow.
  • This repository's own Check carries the new Review job, so this PR exercises it.

Tests: node --test tests/*.test.mjs (21 pass). The new tests guard the gate (a draft, missing needs, a failed, cancelled or skipped job, a failed or missing preview) and CloudCannon publication (only a passed same-repository PR, a refusal fails).

Known trade-off: the PR's own workflow file runs, so a PR that edits it edits its own gate; Ready ran from main. Check and Test were already PR-controlled, so this adds only the preview wait. README says such a PR needs an independent review.

Council review

Rounds: 2

Delegate Round 1 Round 2
Claude Opus no score 8.5/10
GPT Sol 6/10 8.5/10
Muse Wonder no score 8.5/10

Round 1 was GPT Sol alone; its findings (drafts, missing needs, a refused CloudCannon auto-merge) are fixed. Round 2 found no blocker. Carried to the site rollout: a longer Review wait for slow site previews, since Review does not rerun on a late Netlify status as Ready did.

🤖 Generated with Claude Code


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

silveltman and others added 3 commits November 22, 2026 20:04
Each PR workflow ends with a job named Review that calls the new review
action: it fails unless every other job of the run succeeded and the
head's Netlify previews built, and then turns on auto-merge for
CloudCannon publications. The ruleset's Review context accepts it as a
GitHub Actions check, so no rule changes. Ready, its status and
workflow_run triggers and its tests go; callers keep working on the SHA
they pin until they move over.

Test also selects every target when the calling workflow changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…erge

A skipped required check counts as passed, so a draft now fails Review
instead of skipping it, and so does a caller that passes no needs. A
CloudCannon publication whose auto-merge GitHub refuses would wait
unseen, so that fails Review too; an auto-merge already on is left as
it is. No CloudCannon repository releases on push, so the merge token
input goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review can wait up to 15 minutes for previews, so before it turns on
auto-merge it reads the PR again and fails when it closed, became a
draft, got a new head or another base, or already has auto-merge on
with another method than a merge commit. Converting a PR to draft
starts a run again, so its Review fails instead of staying green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silveltman
silveltman merged commit 3f6e99b into main Nov 22, 2026
5 checks passed
@silveltman
silveltman deleted the ci/review-check branch November 22, 2026 23:00
silveltman added a commit to fulldotdev/ui that referenced this pull request Nov 22, 2026
Every PR used to start three workflows: Check, Ready from main and
Netlify's statuses waking Ready again. Review now is a job of Check
itself, so a PR runs one workflow and the required Review check passes
once Check and the site's Netlify preview succeeded. Ready goes.

- Review waits up to 30 minutes for the preview, on a 2 vCPU ARM runner.
- A CloudCannon publication from `preview` still gets auto-merge, now
from Review (only sites with CloudCannon get the write permissions for
that).
- No `workflow_dispatch`: a skipped Review on a PR head would count as
passed.

Same change as fulldotdev/.github#31 and fulldotdev/fulldev#785. Proof:
this PR's own Check and Review runs.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- codesmith:footer -->
---
<a
href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1797981749&installation_model_id=442937&pr_number=336&ref=codesmith_pr_footer&repository=fulldotdev%2Fui&return_to=https%3A%2F%2Fgithub.com%2Ffulldotdev%2Fui%2Fpull%2F336&variant=run_proof&signature=22f9b9364b46aaf5ca0edb768a2fdb862f9424c3ac5a7e88b29ad535adb14620"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-run-proof-v2-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-run-proof-v2-light.svg"><img
alt="Run Proof"
src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-run-proof-v2-dark-3x.png"
width="102" height="28"></picture></a>
<sup><a
href="https://app.blacksmith.sh/fulldotdev/codesmith/ui/pr/336?autoLogin=true&ref=codesmith_pr_footer">Open
in [code]smith</a> · Need help on this PR? Tag
<code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
silveltman added a commit to fulldotdev/sitex that referenced this pull request Nov 22, 2026
Every PR used to start three workflows: Check, Ready from main and
Netlify's statuses waking Ready again. Review now is a job of Check
itself, so a PR runs one workflow and the required Review check passes
once Check and the site's Netlify preview succeeded. Ready goes.

- Review waits up to 30 minutes for the preview, on a 2 vCPU ARM runner.
- A CloudCannon publication from `preview` still gets auto-merge, now
from Review (only sites with CloudCannon get the write permissions for
that).
- No `workflow_dispatch`: a skipped Review on a PR head would count as
passed.

Same change as fulldotdev/.github#31 and fulldotdev/fulldev#785. Proof:
this PR's own Check and Review runs.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- codesmith:footer -->
---
<a
href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1797981766&installation_model_id=442937&pr_number=42&ref=codesmith_pr_footer&repository=fulldotdev%2Fsitex&return_to=https%3A%2F%2Fgithub.com%2Ffulldotdev%2Fsitex%2Fpull%2F42&variant=start_proof&signature=1a6850cd09a83cda4da5ced24a6a1fb1db5bd684090b4a0224e570daae6dc334"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-start-proof-v2-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-start-proof-v2-light.svg"><img
alt="Start Proof"
src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-start-proof-v2-dark-3x.png"
width="108" height="28"></picture></a>
<sup><a
href="https://app.blacksmith.sh/fulldotdev/codesmith/sitex/pr/42?autoLogin=true&ref=codesmith_pr_footer">Open
in [code]smith</a> · Need help on this PR? Tag
<code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
silveltman added a commit to fulldotdev/silveltman that referenced this pull request Nov 22, 2026
Every PR used to start three workflows: Check, Ready from main and
Netlify's statuses waking Ready again. Review now is a job of Check
itself, so a PR runs one workflow and the required Review check passes
once Check and the site's Netlify preview succeeded. Ready goes.

- Review waits up to 30 minutes for the preview, on a 2 vCPU ARM runner.
- A CloudCannon publication from `preview` still gets auto-merge, now
from Review (only sites with CloudCannon get the write permissions for
that).
- No `workflow_dispatch`: a skipped Review on a PR head would count as
passed.

Same change as fulldotdev/.github#31 and fulldotdev/fulldev#785. Proof:
this PR's own Check and Review runs.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- codesmith:footer -->
---
<a
href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1797981890&installation_model_id=442937&pr_number=46&ref=codesmith_pr_footer&repository=fulldotdev%2Fsilveltman&return_to=https%3A%2F%2Fgithub.com%2Ffulldotdev%2Fsilveltman%2Fpull%2F46&variant=get_evidence&signature=b69ccb3901898f265e9daea31321bf834ddc8a8e7079ef13d434d14ae1554f9e"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-get-evidence-v2-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-get-evidence-v2-light.svg"><img
alt="Get evidence"
src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-get-evidence-v2-dark-3x.png"
width="123" height="28"></picture></a>
<sup><a
href="https://app.blacksmith.sh/fulldotdev/codesmith/silveltman/pr/46?autoLogin=true&ref=codesmith_pr_footer">Open
in [code]smith</a> · Need help on this PR? Tag
<code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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