Add Push MD branch previews#71
Merged
Merged
Conversation
artpi
force-pushed
the
codex/push-md-branch-previews
branch
from
June 19, 2026 12:27
fd484e4 to
c9673b8
Compare
artpi
marked this pull request as ready for review
June 19, 2026 15:46
artpi
force-pushed
the
codex/push-md-branch-previews
branch
from
July 13, 2026 08:44
3c50b11 to
b8dcaa4
Compare
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
?branch=<branch_name>, including branch-only posts in front-page/query-loop rendering.PushMD Branch -> Live site / <branch>.Manual Testing Instructions
git push origin HEAD:refs/heads/<branch>.Preview:URL andChanged preview URLs:entries for modified content, all using?branch=<branch>.X-Push-MD-Preview-Branch: <branch>, cache-busting headers, and the preview notice.?branch=<branch>and confirm branch-only new posts appear there.PushMD Branch -> Live site / <branch>and confirm it switches between the live URL and branch preview URL.Jurassic Ninja Smoke Test
bash bin/build-plugins.shand deployeddist/plugins/push-md.zipto the Jurassic Ninja test site.php -lpassed for the deployed plugin file.Push_MD_Plugin::list_preview_branches()returnededit-default-post.https://quickly-respectable.jurassic.ninja/?branch=edit-default-postreturned HTTP 200,X-Push-MD-Preview-Branch: edit-default-post, no-store cache headers, the active branch switcher,Live site, and the branch-onlyNew Postcontent.Notes
composer testwas attempted, but the Blueprints phase failed after a GitHub download timeout forwp-cli.phar, then cascaded into incomplete WordPress install errors.composer lintstill reports existing warnings outside the files changed by this PR; changed-file PHPCS is clean.