- Timestamp:
- 05/22/2020 05:52:27 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/functions.php
r9898 r9900 59 59 } 60 60 61 $touches_tests = false; 62 $_files = api_request( 63 '/repos/' . $repo . '/pulls/' . intval( $pr ) . '/files?per_page=999', 64 null, 65 [ 'Accept: application/vnd.github.antiope-preview+json' ] 66 ); 67 foreach ( $_files as $f ) { 68 if ( preg_match( '!(^tests/|/tests/)!', $f->filename ) ) { 69 $touches_tests = true; 70 break; 71 } 72 } 73 61 74 return (object) [ 62 75 'repo' => $data->base->repo->full_name, … … 71 84 'check_runs' => $check_runs, 72 85 'reviews' => $reviews, 86 'touches_tests' => $touches_tests, 73 87 'body' => $data->body, 74 88 'user' => (object) [
Note: See TracChangeset
for help on using the changeset viewer.