@@ -23,7 +23,7 @@ const queries = require('./queries.gql');
23
23
24
24
interface PageInformation {
25
25
pullRequestPage : number ;
26
- hasMorePages : boolean ;
26
+ hasMorePages : boolean | null ;
27
27
}
28
28
29
29
interface RestErrorResult {
@@ -211,7 +211,7 @@ export class PullRequestManager {
211
211
if ( ! this . _repositoryPageInformation . get ( remoteId ) ) {
212
212
this . _repositoryPageInformation . set ( remoteId , {
213
213
pullRequestPage : 1 ,
214
- hasMorePages : false
214
+ hasMorePages : null
215
215
} ) ;
216
216
}
217
217
}
@@ -315,14 +315,14 @@ export class PullRequestManager {
315
315
for ( let repository of this . _githubRepositories ) {
316
316
this . _repositoryPageInformation . set ( repository . remote . url . toString ( ) , {
317
317
pullRequestPage : 1 ,
318
- hasMorePages : false
318
+ hasMorePages : null
319
319
} ) ;
320
320
}
321
321
}
322
322
323
323
githubRepositories = githubRepositories . filter ( repo => {
324
324
let info = this . _repositoryPageInformation . get ( repo . remote . url . toString ( ) ) ;
325
- return info && info . hasMorePages ;
325
+ return info && info . hasMorePages !== false ;
326
326
} ) ;
327
327
328
328
let pullRequests : PullRequestModel [ ] = [ ] ;
@@ -361,7 +361,7 @@ export class PullRequestManager {
361
361
public mayHaveMorePages ( ) : boolean {
362
362
return this . _githubRepositories . some ( repo => {
363
363
let info = this . _repositoryPageInformation . get ( repo . remote . url . toString ( ) ) ;
364
- return ! ! ( info && info . hasMorePages ) ;
364
+ return ! ! ( info && info . hasMorePages !== false ) ;
365
365
} ) ;
366
366
}
367
367
0 commit comments