-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: Install themes and plugins directly from Git #1708
Comments
Once this is in place, let's:
|
Once we have a good git -> Playground flow, let's look into #1709 to enable providing default configuration in the repo. |
@adamziel I see that there were some new docs added to the Playground docs today, and this caught my eye I was not aware that it was possible to do it this way, and if it also works in the Playground block, it would solve my immediate need for Learn.WordPress.org usage. So if I test it and it works, I'm wondering if this work is still needed? |
Potentially a Public PHP CORS Proxy will be useful for other potential issues in plugins that call APIs that don't have CORS support. We already encountered this with the |
This can be marked as solved as soon as we deploy the PHP CORS proxy (#1467 cc @brandonpayton). The git parts are provided by #1858 and #1860. The following Blueprint would install the blocky formats plugin: {
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"login": true,
"landingPage": "/wp-admin/",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "git:directory",
"url": "https://github.com/dmsnell/blocky-formats.git",
"ref": "trunk",
"path": "/"
}
}
]
} Note there is no Query API counterpart and there is no shorthand syntax such as |
Solved in #1793 now that CORS proxy is live on playground.wordpress.net for fetching git files. |
Let's support installing plugins and themes directly from git, e.g.:
https://playground.wordpress.net/?plugin=https://github.com/dmsnell/blocky-formats
https://playground.wordpress.net/?plugin=https://gitlab.com/dmsnell/blocky-formats
[email protected]:dmsnell/blocky-formats.git
{ "plugins": ["https://github.com/dmsnell/blocky-formats"] }
{ "plugins": [ {"resource": "git", "url": "[email protected]:dmsnell/blocky-formats.git" } ] }
A few other features that would be useful to support
https://github.com/WordPress/playground-tools/tree/trunk/packages/wordpress-playground-block
https://github.com/WordPress/playground-tools/tree/my-sub-branch/packages/wordpress-playground-block
https://github.com/WordPress/playground-tools/pulls/1
We'll likely need to recognize the git service provider domain, and rewrite the provider-specific URL into a CORS proxied git URL behind the scenes.
CI artifacts are out of scope of this issue:
https://github.com/WordPress/gutenberg/actions/runs/10575588549/artifacts/1858796776
Pre-requisites
Follow-up work
cc @jonathanbossenger
The text was updated successfully, but these errors were encountered: