[Project Automation] Add artifact url and live gutenberg.run url #54304
Labels
[Package] Project management automation
/packages/project-management-automation
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
A comment should be added to each new PR with the link to live preview sites gutenberg.run
When the preview site is set up, Gutenberg is installed by downloading the ARTIFACT_DOWNLOAD_URL, is it the generated zip from Build Gutenberg Plugin Zip workflow.
So we should create the comment based on the build status of Gutenberg plugin zip
http://gutenberg.run/${ pr_number }
Something like
What is your proposed solution?
Since the preview site has relied on the Build process , I decided to use
workflow_run
event to trigger the workflow Pull request automation which will run tasks on Gutenberg project management automationHow the comment is made
gutenberg-run-placeholder:cmt@v1
What is the build status
in_progress
: is when the build workflow has started aka when new PR is made or new commit is pushed to the PRsuccess
: when theworkflow_run
event hascompleted
and the artifact is available on the APIfailure
: when the workflow complete but the artifact is not available on the APIHow is the plugin file URL is made
${ repoHtmlUrl }/suites/${ checkSuiteId }/artifacts/${artifact.id}
, we can grab those via event payload and from the APIReference
The text was updated successfully, but these errors were encountered: