ci(promote): repoint docs rebuild dispatch to gominimal/webapp + docs-hotfix - #987
Conversation
The standalone docs host (gominimal/docs) was collapsed into the webapp (gominimal/webapp#470), which now runs the deploy-time docs sync (gominimal/webapp#489). Repoint promote.yml's reference-docs-promoted dispatch and its bot-token scope from docs to webapp so promotions refresh docs on the live site. Add docs-hotfix.yml: a workflow_dispatch that fires the same reference-docs-promoted dispatch for a chosen sha (default main HEAD), so a docs correction can go live without cutting a binary release. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
📝 WalkthroughWalkthroughAdds a manually triggered documentation hotfix workflow and redirects promotion-triggered documentation rebuild events from ChangesDocumentation dispatch routing
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/docs-hotfix.yml (1)
1-80: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick winObtain
@gominimal/minimalistsapproval for this workflow change..github/workflows/docs-hotfix.ymlis CODEOWNERS-protected, so this is a merge blocker until the required workflow-owner review is present.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/docs-hotfix.yml around lines 1 - 80, Obtain and record the required CODEOWNERS approval from `@gominimal/minimalists` for the workflow changes in docs-hotfix.yml before merging; no code changes are needed.Sources: Coding guidelines, Learnings
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In @.github/workflows/docs-hotfix.yml:
- Around line 1-80: Obtain and record the required CODEOWNERS approval from
`@gominimal/minimalists` for the workflow changes in docs-hotfix.yml before
merging; no code changes are needed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 84b9bbb6-c237-437c-9ec4-9b14b37f4249
📒 Files selected for processing (2)
.github/workflows/docs-hotfix.yml.github/workflows/promote.yml
|
Non-blocking nit on [[ "$SHA" =~ ^[0-9a-f]{7,40}$ ]] || { echo "::error::not a commit sha: ${SHA}"; exit 1; }Everything else verified against the receiver in webapp#489 — event type and |
Reject non-sha input in the resolve step before dispatching, instead of burning a webapp deploy that degrades to the channel pointer. Addresses review on #987. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Good call — applied in |
Summary
The standalone docs host
gominimal/docs(VitePress) was retired and collapsed intogominimal/webapp(Astro), which now runs the deploy-time docs sync restored in gominimal/webapp#489. That sync pullsdocs/{reference,concepts,guide→start}from this repo at a resolved release sha and prerenders it.This PR wires the upstream (this-repo) side of that mechanism:
promote.yml— repoint thereference-docs-promotedrepository_dispatchand the AW_BOT token scope fromgominimal/docs→gominimal/webapp. On promote, the resolved release sha is pushed as the dispatch payload; the webapp pulls docs at that sha.docs-hotfix.yml(new) — aworkflow_dispatchthat fires the samereference-docs-promoteddispatch for a chosen sha (defaultmainHEAD). This lets a docs correction go live on the webapp without cutting or promoting a binary release.Resolves the upstream repoint tracked in gominimal/webapp#486 and gominimal/webapp#489's operator follow-up.
Prerequisites (operator / cross-repo — not code)
reference-docs-promotedtrigger. Until it merges, both dispatches are harmless no-ops.gominimal/webappwithcontents: write(AW_BOT_APP_IDvar +AW_BOT_PRIVATE_KEYsecret), or swap the mint step to the orgAPP_ID/APP_PRIVATE_KEYalready on this repo. Without it the token-mint step fails. (webapp#489 operator follow-up.)MINIMAL_DOCS_SHA → stable → unstable → main.docs-hotfix.ymlsetsMINIMAL_DOCS_SHAfor one deploy; a later webapp-driven deploy reverts to the channel pointer. So a hotfix is a bridge until the fix ships in the next promoted release. A durable alternative (a promote-written docs pointer the webapp reads first) needs a webapp-side change — tracked in webapp#486.Verification
gominimal/docsrefs remain in.github/workflows/.docs-hotfix(or a dry-run promote) and confirm the webapp deploy resolvesMINIMAL_DOCS_SHAand syncs the reference/concepts/guide sections at that sha.🤖 Generated with Claude Code
Note
Repoint docs rebuild dispatch to
gominimal/webappand adddocs-hotfixworkflowreference-docs-promotedevent togominimal/webappinstead ofgominimal/docs, including token scope and API endpoint.reference-docs-promotedtogominimal/webappwith a specified or default SHA, without requiring a binary promotion.Changes since #987 opened
docs-hotfixworkflow [fa112e5]Macroscope summarized 062015d.
Summary by CodeRabbit