Repository navigation
ci(publish): notify prisma-cli after a stable publish - #295
Conversation
prisma-cli's release automation asks each product repository to send a product-published repository_dispatch after publishing, so its update-product-versions workflow can open the repin PR right away instead of waiting for the daily schedule. The ORM repository already does this; composer did not, so every composer release was picked up a day late unless someone dispatched the workflow by hand. Stable publishes only: the receiver re-reads the registry at the release dist-tag, so a dev publish would be a no-op there. Uses the DEPLOY_GITHUB_TOKEN secret this repository already holds, skips cleanly when it is unset, and never fails the publish. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
✅ Gizmo reviewed cabc2a6 — posted 0 inline comment(s) this pass. Open findings: 🔴 1 critical Change walkthroughThis PR makes prisma/composer emit a Workflow change (publish.yml:174-192)
Repository fit
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: Comment |
commit: |
gh api -F reads a value that starts with @ from a file, so '@prisma/composer-cli' failed to parse before any request was made, and continue-on-error hid it. -f sends the literal string. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
New findings: none · trace
Still open from previous reviews: 🔴 1 critical
Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]>
Linked issue
n/a — small change
Summary
prisma-cli's release automation (
docs/oss/release-automation.mdthere) asks each product repository to send aproduct-publishedrepository_dispatchafter a successful publish, so itsupdate-product-versionsworkflow opens the repin PR immediately. prisma/orm does this; composer did not, so every composer release was only picked up by prisma-cli's daily schedule, or by hand (as with 0.19.0 and 0.20.0 last week).The new step runs after the GitHub Release on stable publishes only, since the receiver re-reads the registry at the release dist-tag and a dev publish would be a no-op there. It uses the
DEPLOY_GITHUB_TOKENsecret this repository already holds (the spec says the same token lives under that name in all three repositories; it needs Contents write on prisma/prisma-cli), skips with a message when the secret is unset, and iscontinue-on-error, so it can never fail a publish.Testing performed
gh apiinvocation in prisma-cli's spec verbatim.main. The nextchore(release)merge will show whether the token has the required scope; if it does not, the step logs a 403 and the daily schedule still covers it.Checklist
git commit -s) per the DCO. The DCO status check will block merge if any commit is missing aSigned-off-by:trailer.feat,fix,chore,docs,refactor,test,build) — PR titles drive the auto-generated release notes.Notes for the reviewer
Whether
DEPLOY_GITHUB_TOKENin this repository was created with Contents write on prisma/prisma-cli is not visible from here. If it was only ever set for another purpose, it needs that scope for the dispatch endpoint to accept the call.🤖 Generated with Claude Code