-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add live preview URL on Pull Request #54303
base: trunk
Are you sure you want to change the base?
Conversation
name: Pull request automation | ||
|
||
jobs: | ||
pull-request-automation: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'WordPress/gutenberg' }} | ||
if: ${{ true || github.repository == 'WordPress/gutenberg' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I made this always true to test on personal repo, should be removed on trunk
packages/project-management-automation/lib/tasks/pr-preview-link/index.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really cool. I think it will help out with testing a lot.
Could you please remove the icons from the returned comment? They cause accessibility issues. Text labels are better.
Thanks so much for taking this on! Since this seems geared towards helping folks test without a dev environment, I wonder if we can gear the comment in that way. At a glance, folks might not realize what it's unlocking. For example, rather than saying "Gutenberg Plugin Build Status", what if it were a bit more friendly like "Contribute to this PR"? From there, the rest of the information could be presented more as a last updated with a link to Gutenberg run and some instructions around how best to use Gutenberg.run. |
Do you mean we may not need other rows other than the Live Preview URL?
Will this be a link to Contributor handbook for the detailed steps? |
Yeah, I think we could make this more condensed and clear as the intent is to allow folks to have an easier to way to check out what's going on with the PR itself rather than to provide a status update about Gutenberg.run if that makes sense!
I think this could be fairly simple. I'm not sure we have a handbook page for that but some sort of one liner around "You can use this Gutenberg.run link to quickly test and provide feedback on this PR without setting up a development environment. A Gutenberg.run site works for 24 hours. Thanks for providing feedback!" |
@ryanwelcher could you help move this forward and get this approved? I think it would be a huge help for folks to give feedback on PRs. |
We may still need the Built Artifact URL as suggested in this comment #27426 (comment), It helps folks who want to test the Gutenberg plugin on their own sites & data by simply clicking download link instead go to
Then I think we can place the message inside PR template or under the build status comment like below
You can use this Gutenberg.run link to quickly test and provide feedback on this PR without setting up a development environment. A Gutenberg.run site works for 24 hours. Thanks for providing feedback!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bangank36 This is looking really good. As mentioned in my previous review, please strip the icons. Thanks.
packages/project-management-automation/lib/tasks/pr-preview-link/index.js
Outdated
Show resolved
Hide resolved
packages/project-management-automation/lib/tasks/pr-preview-link/index.js
Outdated
Show resolved
Hide resolved
packages/project-management-automation/lib/tasks/pr-preview-link/index.js
Outdated
Show resolved
Hide resolved
packages/project-management-automation/lib/tasks/pr-preview-link/index.js
Outdated
Show resolved
Hide resolved
packages/project-management-automation/lib/tasks/pr-preview-link/index.js
Outdated
Show resolved
Hide resolved
@alexstine is the a11y applied for github comments too? Because using icons can help identify the status quicker, as I can see they are used across the repo, eg #53360 (comment) or #54443 (comment)? |
@bangank36 I've been trying to replace them but its a slow process. |
:) Sure I'll make change and update the PR |
What?
Add PR comment with Gutenberg build status and link to gutenberg.run
Why?
Make it easier for non-tech contributors can help testing the PR as well as download the Gutenberg plugin zip file
How?
#54304
Testing Instructions
On my repo
in_progress
at first andsuccess
when the Build readyOn Wordpress/Gutenberg
trunk
to test theworkflow_run
event, we may need a condition on the task file to check for a particular branch name before making it available for all future PRsUnit testings
npm run test:unit /packages/project-management-automation/lib/tasks/pr-preview-link/test/
forprPreviewLink
unit testingsTesting Instructions for Keyboard
Screenshots or screencast
cc: @iandunn @ockham @noisysocks