File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1363,5 +1363,9 @@ export abstract class HostingIntegration<
13631363 cancellation ?: CancellationToken ,
13641364 ) : Promise < PullRequest [ ] | undefined > ;
13651365
1366- getPullRequestIdentityFromMaybeUrl ?( search : string ) : PullRequestUrlIdentity | undefined ;
1366+ getPullRequestIdentityFromMaybeUrl ( search : string ) : PullRequestUrlIdentity | undefined {
1367+ return this . getProviderPullRequestIdentityFromMaybeUrl ?.( search ) ;
1368+ }
1369+
1370+ protected getProviderPullRequestIdentityFromMaybeUrl ?( search : string ) : PullRequestUrlIdentity | undefined ;
13671371}
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ export class GitHubIntegration extends GitHubIntegrationBase<HostingIntegrationI
295295 }
296296 }
297297
298- override getPullRequestIdentityFromMaybeUrl ( search : string ) : PullRequestUrlIdentity | undefined {
298+ protected override getProviderPullRequestIdentityFromMaybeUrl ( search : string ) : PullRequestUrlIdentity | undefined {
299299 return getGitHubPullRequestIdentityFromMaybeUrl ( search ) ;
300300 }
301301}
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ abstract class GitLabIntegrationBase<
396396 } ;
397397 }
398398
399- override getPullRequestIdentityFromMaybeUrl ( search : string ) : PullRequestUrlIdentity | undefined {
399+ protected override getProviderPullRequestIdentityFromMaybeUrl ( search : string ) : PullRequestUrlIdentity | undefined {
400400 return getGitLabPullRequestIdentityFromMaybeUrl ( search ) ;
401401 }
402402}
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ export class LaunchpadProvider implements Disposable {
598598 for ( const integrationId of supportedLaunchpadIntegrations ) {
599599 if ( connectedIntegrations . get ( integrationId ) ) {
600600 const integration = await this . container . integrations . get ( integrationId ) ;
601- const prIdentity = integration . getPullRequestIdentityFromMaybeUrl ?. ( search ) ;
601+ const prIdentity = integration . getPullRequestIdentityFromMaybeUrl ( search ) ;
602602 if ( prIdentity ) {
603603 return prIdentity ;
604604 }
You can’t perform that action at this time.
0 commit comments