wordpress/WordPress Playground Preview

Automatically add a "Preview in WordPress Playground" button to your pull requests for easy testing of WordPress plugins and themes.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modeHow to publish the preview button: `append-to-description` or `comment`append-to-description
playground-hostBase WordPress Playground host URLhttps://playground.wordpress.net
blueprintCustom WordPress Blueprint as a JSON string. When provided, `plugin-path` and `theme-path` are ignored.
blueprint-urlURL pointing to a remote blueprint. When provided, the Playground link uses `?blueprint-url={url}` directly.
plugin-pathPath to plugin directory inside the repository (e.g., `.` for root or `plugins/my-plugin`)
theme-pathPath to theme directory inside the repository (e.g., `.` for root or `themes/my-theme`)
description-templateCustom markdown/HTML template for PR descriptions (supports {{VARIABLE_NAME}} interpolation)
comment-templateCustom markdown/HTML template for PR comments (supports {{VARIABLE_NAME}} interpolation)
restore-button-if-removedWhether to restore the preview button if removed by PR author (only applies to `append-to-description` mode)true
github-tokenGitHub token for updating PRs. Required permissions: `pull-requests: write`, `contents: read`
pr-numberPull request number (optional, defaults to context.payload.pull_request.number). When provided, all PR details will be fetched from the GitHub API.
namedescription
preview-urlDirect link to the generated WordPress Playground instance.
blueprint-jsonJSON blueprint (stringified) used for the preview.
rendered-descriptionMarkdown/HTML snippet inserted into the PR description.
rendered-commentMarkdown/HTML snippet used when posting a comment.
modeEffective preview publishing mode (append-to-description or comment).
comment-idID of the managed preview comment (if applicable).