Skip to content

Support previews for stacked pull requests - #1807

Draft
st0012 wants to merge 1 commit into
ruby:masterfrom
st0012:codex/stacked-pr-previews
Draft

Support previews for stacked pull requests#1807
st0012 wants to merge 1 commit into
ruby:masterfrom
st0012:codex/stacked-pr-previews

Conversation

@st0012

@st0012 st0012 commented Sep 1, 2026

Copy link
Copy Markdown
Member

Stacked pull requests target another branch in ruby/rdoc. The trusted preview resolver currently rejects these builds because it only accepts master.

This change keeps the base repository fixed to ruby/rdoc and accepts any branch in that repository. The workflow records the exact base branch. It checks the branch again before deployment and before the preview comment changes. If the head or base changes after the workflow binds the artifact, the run stops before deployment or skips the preview comment. Cloudflare secrets remain limited to the deployment step.

Pull request edits now start the untrusted build workflow. As a result, a base retarget gets a new preview without maintainer approval.

A parent branch update does not change the child head. The preview updates after the child is restacked and the synchronize event runs.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Documentation preview

View the preview

Commit: 9af5a3b

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