@@ -2376,7 +2376,7 @@ export class GitHubApi implements Disposable {
23762376 async searchMyPullRequests (
23772377 provider : RichRemoteProvider ,
23782378 token : string ,
2379- options ?: { search ?: string ; user ?: string ; repos ?: string [ ] } ,
2379+ options ?: { search ?: string ; user ?: string ; repos ?: string [ ] ; baseUrl ?: string } ,
23802380 ) : Promise < SearchedPullRequest [ ] > {
23812381 const scope = getLogScope ( ) ;
23822382
@@ -2447,14 +2447,15 @@ export class GitHubApi implements Disposable {
24472447
24482448 const baseFilters = 'is:pr is:open archived:false' ;
24492449 const resp = await this . graphql < SearchResult > (
2450- undefined ,
2450+ provider ,
24512451 token ,
24522452 query ,
24532453 {
24542454 authored : `${ search } ${ baseFilters } author:@me` . trim ( ) ,
24552455 assigned : `${ search } ${ baseFilters } assignee:@me` . trim ( ) ,
24562456 reviewRequested : `${ search } ${ baseFilters } review-requested:@me` . trim ( ) ,
24572457 mentioned : `${ search } ${ baseFilters } mentions:@me` . trim ( ) ,
2458+ baseUrl : options ?. baseUrl ,
24582459 } ,
24592460 scope ,
24602461 ) ;
@@ -2478,15 +2479,15 @@ export class GitHubApi implements Disposable {
24782479 ) ;
24792480 return results ;
24802481 } catch ( ex ) {
2481- throw this . handleException ( ex , undefined , scope ) ;
2482+ throw this . handleException ( ex , provider , scope ) ;
24822483 }
24832484 }
24842485
24852486 @debug < GitHubApi [ 'searchMyIssues' ] > ( { args : { 0 : '<token>' } } )
24862487 async searchMyIssues (
24872488 provider : RichRemoteProvider ,
24882489 token : string ,
2489- options ?: { search ?: string ; user ?: string ; repos ?: string [ ] } ,
2490+ options ?: { search ?: string ; user ?: string ; repos ?: string [ ] ; baseUrl ?: string } ,
24902491 ) : Promise < SearchedIssue [ ] | undefined > {
24912492 const scope = getLogScope ( ) ;
24922493 interface SearchResult {
@@ -2540,13 +2541,14 @@ export class GitHubApi implements Disposable {
25402541 const baseFilters = 'type:issue is:open archived:false' ;
25412542 try {
25422543 const resp = await this . graphql < SearchResult > (
2543- undefined ,
2544+ provider ,
25442545 token ,
25452546 query ,
25462547 {
25472548 authored : `${ search } ${ baseFilters } author:@me` . trim ( ) ,
25482549 assigned : `${ search } ${ baseFilters } assignee:@me` . trim ( ) ,
25492550 mentioned : `${ search } ${ baseFilters } mentions:@me` . trim ( ) ,
2551+ baseUrl : options ?. baseUrl ,
25502552 } ,
25512553 scope ,
25522554 ) ;
@@ -2570,7 +2572,7 @@ export class GitHubApi implements Disposable {
25702572 ) ;
25712573 return results ;
25722574 } catch ( ex ) {
2573- throw this . handleException ( ex , undefined , scope ) ;
2575+ throw this . handleException ( ex , provider , scope ) ;
25742576 }
25752577 }
25762578}
0 commit comments