vcanales / action-wp-playground-pr-preview Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This action would be so useful to adopt in all the repositories out there. To do that, it needs to provide a degree of customization. I went through a few custom comment actions out in the wild and gathered a few things to parametrize before they can be swapped for this one:
target_repo_owner
target_repo_name
source_branch_name
pr_number
pr_url
ci_job_run_id
preview_url
– based on the Blueprint belowpreview_blueprint_hash
– to link to, say, https://playground.wordpress.net/builder/builder.html#the same blueprint
Also – thank you so much for your great work here @vcanales!
It would be great to offer an official WordPress reusable GitHub action. Would you be open to moving this repo under the WordPress org? This would unlock recommending it in all Playground docs and materials.
It would be useful to select one of a few actions:
@youknowriad provided a good rationale for that in the related Gutenberg PR:
With this, it's going to be the sixth bot comment on PRs on Gutenberg. All of the comments are useful but their number makes it so that it's very noisy and distract a lot from the PR.
We have:
A comment to welcome new contributors
A comment to tell new contributors that they're missing the connection in WP profiles (yes, I think there are two comments for new contributors)
A comment from the props bot
A comment about the bundle size
A comment about flaky tests
A comment about modified php files
A comment about the previews on Playground
And we also discussed adding a comment about the "performance job results" (link to summary)
I like all of these comments and I actually have ideas to add more comments but this is not sustainable IMO for PR authors and reviewers. We should explore merging all of these comments into:One pre-merge comment.
One post-merge comment.
And smartly use things like "details" to hide/show sections.(I don't consider this comment a blocker for this PR, but I think we should explore that soonish)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.