File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export interface StatusType {
1111 } ;
1212 installations : {
1313 installation : Endpoints [ "GET /app/installations" ] [ "response" ] [ "data" ] [ 0 ]
14- repos : Endpoints [ "GET /app/installations " ] [ "response" ] [ "data" ] ;
14+ repos : Endpoints [ "GET /installation/repositories " ] [ "response" ] [ "data" ] [ "repositories "] ;
1515 } [ ] ;
1616 surveyCount : number ;
1717 auth ?: {
@@ -56,10 +56,12 @@ class StatusService {
5656
5757 status . installations = [ ] ;
5858 for ( const installation of app . github . installations ) {
59- const repos = await installation . octokit . request ( installation . installation . repositories_url ) ;
59+ const repos = await installation . octokit . paginate < Endpoints [ "GET /installation/repositories" ] [ "response" ] [ "data" ] [ "repositories" ] [ 0 ] > (
60+ installation . installation . repositories_url
61+ ) ;
6062 status . installations . push ( {
6163 installation : installation . installation ,
62- repos : repos . data . repositories
64+ repos : repos
6365 } ) ;
6466 }
6567
You can’t perform that action at this time.
0 commit comments