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

Making WordPress.org noreply at wordpress.org
Tue Mar 3 06:48:42 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 dd32):

 Replying to [comment:2 noisysocks]:
 > It looks like you have to access a separate endpoint:
 >
 >
 `https://api.github.com/repos/WordPress/gutenberg/pulls/$pr_number/reviews`

 Unfortunately this is going to require using a higher-access access token,
 so pending this task via #4903 which is kind of strange given the endpoint
 is accessible unauthenticated (Just at a low rate limit)

 > ❌ Switch to using a Github App OAuth Token from dd32's personal Github
 token
 [https://meta.trac.wordpress.org/browser/sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/functions.php?marks=94,96#L88
 get_authorization_token()]  (or change it to select a random users
 token..)

 {{{
   class stdClass#4 (2) {
     public $message =>
     string(38) "Resource not accessible by integration"
     public $documentation_url =>
     string(77) "https://developer.github.com/v3/pulls/reviews/#list-
 reviews-on-a-pull-request"
   }
 }}}

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


More information about the wp-meta mailing list