[wp-trac] [WordPress Trac] #59416: Add a GitHub Action which alerts contributors to a WordPress Playground link to use for testing PRs

WordPress Trac noreply at wordpress.org
Fri Nov 17 18:23:05 UTC 2023


#59416: Add a GitHub Action which alerts contributors to a WordPress Playground
link to use for testing PRs
------------------------------+---------------------
 Reporter:  JeffPaul          |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  6.5
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by desrosj):

 In [changeset:"57124" 57124]:
 {{{
 #!CommitTicketReference repository="" revision="57124"
 Build/Test Tools: Comment on PRs with WordPress Playground information.

 After [56958], pull requests to `wordpress-develop` can be tested within a
 WordPress Playground instance. However this capability is not obvious.

 This makes several updates to GitHub action workflows to avoid unnecessary
 extra runs/jobs while also commenting on pull requests with proper context
 for testing in Playground once a build is available for the PR.

 Changes:
 - The `build.yml` workflow has been deleted. The WordPress build process
 is already being tested within the `test-build-processes.yml` workflow.
 Now that workflow will produce and upload the built artifact for the given
 PR.
 - A `pull-request-comments.yml` workflow has been added to handle the
 commenting. To avoid having multiple workflows that comment on PRs, the
 logic within the `welcome-new-contributors.yml` workflow has been merged
 into this one.
 - The `pull_request` event trigger lacks the needed permission to comment
 on or update pull requests. Instead of using `pull_request_target` to
 navigate around this, the `test-build-processes.yml` workflow will now use
 `workflow_dispatch` to initiate a run of the commenting workflow. This
 adds the ability to only comment on the PR when a build has been
 successfully created and uploaded as an artifact.

 Props swissspidy, zieladam, jeffpaul.
 See #59416.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59416#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list