[wp-meta] [Making WordPress.org] #5052: GitHub integration: Show whether a linked PR is approved

Making WordPress.org noreply at wordpress.org
Fri Feb 28 04:00:51 UTC 2020


#5052: GitHub integration: Show whether a linked PR is approved
-------------------------+---------------------
 Reporter:  noisysocks   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  Trac         |  Resolution:
 Keywords:               |
-------------------------+---------------------

Comment (by noisysocks):

 It looks like you have to access a separate endpoint:

 `https://api.github.com/repos/WordPress/gutenberg/pulls/$pr_number/reviews`

 This returns a JSON list of reviews for the given pull request, and:

 - If the list is empty, there are no reviews.
 - If there is ≥1 items in the list with `"state"` equal to
 `"CHANGES_REQUESTED"`, there are changes requested.
 - If all items in the list have `"state"` equal to `"APPROVED"`, the PR is
 approved.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5052#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list