File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ export function getEntityIdentifierInput(entity: Issue | PullRequest | Launchpad
6262 if ( entityType === EntityType . PullRequest && repoId == null ) {
6363 throw new Error ( 'Azure PRs must have a repository ID to be encoded' ) ;
6464 }
65- } else if ( provider === EntityIdentifierProviderType . Bitbucket ) {
65+ } else if (
66+ provider === EntityIdentifierProviderType . Bitbucket ||
67+ provider === EntityIdentifierProviderType . BitbucketServer
68+ ) {
6669 repoId = isLaunchpadItem ( entity ) ? entity . underlyingPullRequest ?. repository . id : entity . repository ?. id ;
6770 }
6871
Original file line number Diff line number Diff line change @@ -1597,6 +1597,7 @@ function getOpenOnGitProviderQuickInputButton(integrationId: string): QuickInput
15971597 case HostingIntegrationId . AzureDevOps :
15981598 return OpenOnAzureDevOpsQuickInputButton ;
15991599 case HostingIntegrationId . Bitbucket :
1600+ case SelfHostedIntegrationId . BitbucketServer :
16001601 return OpenOnBitbucketQuickInputButton ;
16011602 default :
16021603 return undefined ;
@@ -1622,6 +1623,8 @@ function getIntegrationTitle(integrationId: string): string {
16221623 return 'Azure DevOps' ;
16231624 case HostingIntegrationId . Bitbucket :
16241625 return 'Bitbucket' ;
1626+ case SelfHostedIntegrationId . BitbucketServer :
1627+ return 'Bitbucket Data Center' ;
16251628 default :
16261629 return integrationId ;
16271630 }
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ export const supportedLaunchpadIntegrations: (HostingIntegrationId | CloudSelfHo
134134 SelfHostedIntegrationId . CloudGitLabSelfHosted ,
135135 HostingIntegrationId . AzureDevOps ,
136136 HostingIntegrationId . Bitbucket ,
137+ SelfHostedIntegrationId . BitbucketServer ,
137138] ;
138139type SupportedLaunchpadIntegrationIds = ( typeof supportedLaunchpadIntegrations ) [ number ] ;
139140function isSupportedLaunchpadIntegrationId ( id : string ) : id is SupportedLaunchpadIntegrationIds {
You can’t perform that action at this time.
0 commit comments