Repository navigation
Conversation
why: Lua maintainers can rebuild a pull request preview from a
dispatch. The shared workflows need to verify its tested merge.
what:
- Resolve open Lua pull requests to their tested merge before building.
- Recheck the artifact's merge, base and head before preview upload.
- Keep the dispatch opt-in and restrict forks to build-only artifacts.
tony
force-pushed
the
feat/lua-manual-preview-dispatch
branch
from
December 5, 2026 18:42
dd72c7b to
203c6f2
Compare
This was referenced Dec 5, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lua maintainers can dispatch a new build for an open pull request through the shared workflows. The builder resolves the PR to GitHub's test merge and freezes that commit for the build. The publisher rechecks the verified artifact's merge against the live PR and both merge parents before requesting AWS credentials. Fork PRs and dispatches with publication disabled produce build artifacts only.
Lua caller
Keep
publish-previews: trueon the builder. Dispatchversion-kind: prandversion: pr-Nwithsource-ref: refs/pull/N/mergeor its exact current commit SHA,is-default: false, and an emptyresolves-to. Setpublish: trueto request publication. The publish job must passrequire-current-pr: trueand use the existingdocs-previewenvironment and preview role.This is one prerequisite for Lua #214, alongside the exporter in #383 and the maintenance branch mode in #391.
Verification
main. The dispatch, identity, publisher, and provenance suites pass 319 checks with the changes.mainfor both workflows. The provider merges cleanly with the current Export Lua API in the reusable port docs workflow #383 and Retain numbered maintenance docs builds for Lua #391 heads in local Git merge-tree checks.The
no-previewlabel holds the website preview publication job while hosted CI runs. Codex implemented and verified the change.Closes #390.