Skip to content

Use inline Playground links for PRs - #45

Merged
akirk merged 1 commit into
mainfrom
inline-pr-playground-links
Sep 11, 2026
Merged

akirk merged 1 commit into
mainfrom
inline-pr-playground-links

Conversation

@akirk

@akirk akirk commented Sep 11, 2026 •

Copy link
Copy Markdown
Owner

Keep the dist/main build for compatibility with existing public Playground links, but stop building per-PR dist branches. Pull requests now get Playground links generated from the PR's blueprint.json and demo.json via base64 data-url blueprints, with only this repository's install step rewritten to the PR head commit.

Because this PR changes the pull_request_target workflow itself, GitHub will still run the old workflow from main for this PR until the change is merged.

The launchable blueprints are self-contained by installing WpApp directly from akirk/wp-app and writing the lightweight autoloader before activating memex.

Testing:

  • actionlint .github/workflows/build-dist.yml .github/workflows/plugin-check.yml
  • php -r 'foreach (array_merge(glob("blueprint*.json") ?: [], ["demo.json"]) as $file) { if (is_file($file)) { json_decode(file_get_contents($file), true, 512, JSON_THROW_ON_ERROR); } } echo "blueprints ok\n";'

WordPress Playground

Test this PR in WordPress Playground: Try this PR · Try with demo data

The linked blueprint loads the generated dist/pr-45 branch, including Composer dependencies.

@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@akirk
akirk merged commit 7001621 into main Sep 11, 2026
11 checks passed
@akirk
akirk deleted the inline-pr-playground-links branch September 11, 2026 10:43
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