File tree 2 files changed +14
-4
lines changed
src/plus/integrations/providers
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,18 @@ export class BitbucketIntegration extends HostingIntegration<
93
93
}
94
94
95
95
protected override async getProviderIssue (
96
- _session : AuthenticationSession ,
97
- _repo : BitbucketRepositoryDescriptor ,
98
- _id : string ,
96
+ { accessToken } : AuthenticationSession ,
97
+ repo : BitbucketRepositoryDescriptor ,
98
+ id : string ,
99
99
) : Promise < Issue | undefined > {
100
- return Promise . resolve ( undefined ) ;
100
+ return ( await this . container . bitbucket ) ?. getIssue (
101
+ this ,
102
+ accessToken ,
103
+ repo . owner ,
104
+ repo . name ,
105
+ id ,
106
+ this . apiBaseUrl ,
107
+ ) ;
101
108
}
102
109
103
110
protected override async getProviderPullRequestForBranch (
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ export function getProviderIdFromEntityIdentifier(
105
105
return IssueIntegrationId . Jira ;
106
106
case EntityIdentifierProviderType . Azure :
107
107
return HostingIntegrationId . AzureDevOps ;
108
+ case EntityIdentifierProviderType . Bitbucket :
109
+ return HostingIntegrationId . Bitbucket ;
108
110
default :
109
111
return undefined ;
110
112
}
@@ -228,6 +230,7 @@ export async function getIssueFromGitConfigEntityIdentifier(
228
230
identifier . provider !== EntityIdentifierProviderType . Gitlab &&
229
231
identifier . provider !== EntityIdentifierProviderType . GithubEnterprise &&
230
232
identifier . provider !== EntityIdentifierProviderType . GitlabSelfHosted &&
233
+ identifier . provider !== EntityIdentifierProviderType . Bitbucket &&
231
234
identifier . provider !== EntityIdentifierProviderType . Azure
232
235
) {
233
236
return undefined ;
You can’t perform that action at this time.
0 commit comments