Skip to content

Playground PR review support for two-factor#836

Open
masteradhoc wants to merge 5 commits intoWordPress:masterfrom
masteradhoc:playground-pr-review
Open

Playground PR review support for two-factor#836
masteradhoc wants to merge 5 commits intoWordPress:masterfrom
masteradhoc:playground-pr-review

Conversation

@masteradhoc
Copy link
Collaborator

@masteradhoc masteradhoc commented Mar 13, 2026

What?

Add a WordPress Playground preview button to pull requests.

Fixes #774

Why?

Makes it easier to test plugin changes without a local environment — reviewers can click a button directly from the PR to try the changes in a live Playground instance.

How?

Two new workflows:

  • build-plugin-zip.yml — builds the plugin and uploads it as an artifact on every PR
  • pr-playground-preview.yml — triggers after the build, exposes the artifact publicly, and appends a Playground preview button to the PR description

Testing Instructions

  1. Open a pull request
  2. Wait for both Build Plugin Zip workflow to complete
  3. download the zip created over the workflow over Actions tab in github repo
  4. extract it and install the "two-factor" zip inside
  5. test the changes made in this PR

Whats not testable yet: PR Playground Preview.
The reason is a GitHub limitation with workflow_run — workflows using that trigger must exist on the default branch to work. Since pr-playground-preview.yml only exists on this feature branch (not yet merged to master), GitHub ignores it.

Changelog Entry

Added - Playground preview button on pull requests for easier testing.

@masteradhoc masteradhoc marked this pull request as ready for review March 13, 2026 23:00
@github-actions
Copy link

github-actions bot commented Mar 13, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: masteradhoc <masteradhoc@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@masteradhoc masteradhoc self-assigned this Mar 13, 2026
@masteradhoc masteradhoc added this to the 0.16.0 milestone Mar 13, 2026
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.

Add nightly GitHub prerelease build (ZIP asset) via Actions

1 participant