File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
src/plus/integrations/providers Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,18 @@ export class BitbucketIntegration extends HostingIntegration<
9797 }
9898
9999 protected override async getProviderIssue (
100- _session : AuthenticationSession ,
101- _repo : BitbucketRepositoryDescriptor ,
102- _id : string ,
100+ { accessToken } : AuthenticationSession ,
101+ repo : BitbucketRepositoryDescriptor ,
102+ id : string ,
103103 ) : Promise < Issue | undefined > {
104- return Promise . resolve ( undefined ) ;
104+ return ( await this . container . bitbucket ) ?. getIssue (
105+ this ,
106+ accessToken ,
107+ repo . owner ,
108+ repo . name ,
109+ id ,
110+ this . apiBaseUrl ,
111+ ) ;
105112 }
106113
107114 protected override async getProviderPullRequestForBranch (
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ export function getProviderIdFromEntityIdentifier(
105105 return IssueIntegrationId . Jira ;
106106 case EntityIdentifierProviderType . Azure :
107107 return HostingIntegrationId . AzureDevOps ;
108+ case EntityIdentifierProviderType . Bitbucket :
109+ return HostingIntegrationId . Bitbucket ;
108110 default :
109111 return undefined ;
110112 }
@@ -228,6 +230,7 @@ export async function getIssueFromGitConfigEntityIdentifier(
228230 identifier . provider !== EntityIdentifierProviderType . Gitlab &&
229231 identifier . provider !== EntityIdentifierProviderType . GithubEnterprise &&
230232 identifier . provider !== EntityIdentifierProviderType . GitlabSelfHosted &&
233+ identifier . provider !== EntityIdentifierProviderType . Bitbucket &&
231234 identifier . provider !== EntityIdentifierProviderType . Azure
232235 ) {
233236 return undefined ;
You can’t perform that action at this time.
0 commit comments