File tree Expand file tree Collapse file tree 2 files changed +25
-20
lines changed
src/plus/integrations/providers Expand file tree Collapse file tree 2 files changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -10,32 +10,17 @@ import type { RepositoryMetadata } from '../../../git/models/repositoryMetadata'
1010import { getSettledValue } from '../../../system/promise' ;
1111import type { IntegrationAuthenticationProviderDescriptor } from '../authentication/integrationAuthenticationProvider' ;
1212import type { ProviderAuthenticationSession } from '../authentication/models' ;
13- import type { ResourceDescriptor } from '../integration' ;
1413import { HostingIntegration } from '../integration' ;
14+ import type {
15+ BitbucketRemoteRepositoryDescriptor ,
16+ BitbucketRepositoryDescriptor ,
17+ BitbucketWorkspaceDescriptor ,
18+ } from './bitbucket/models' ;
1519import { providersMetadata } from './models' ;
1620
1721const metadata = providersMetadata [ HostingIntegrationId . Bitbucket ] ;
1822const authProvider = Object . freeze ( { id : metadata . id , scopes : metadata . scopes } ) ;
1923
20- interface BitbucketRepositoryDescriptor extends ResourceDescriptor {
21- owner : string ;
22- name : string ;
23- }
24-
25- interface BitbucketWorkspaceDescriptor extends ResourceDescriptor {
26- id : string ;
27- name : string ;
28- slug : string ;
29- }
30-
31- interface BitbucketRemoteRepositoryDescriptor extends ResourceDescriptor {
32- resourceId : string ;
33- owner : string ;
34- name : string ;
35- cloneUrlHttps ?: string ;
36- cloneUrlSsh ?: string ;
37- }
38-
3924export class BitbucketIntegration extends HostingIntegration <
4025 HostingIntegrationId . Bitbucket ,
4126 BitbucketRepositoryDescriptor
Original file line number Diff line number Diff line change @@ -3,6 +3,26 @@ import type { IssueOrPullRequestState } from '../../../../git/models/issueOrPull
33import type { PullRequestMember , PullRequestReviewer } from '../../../../git/models/pullRequest' ;
44import { PullRequest , PullRequestReviewDecision , PullRequestReviewState } from '../../../../git/models/pullRequest' ;
55import type { Provider } from '../../../../git/models/remoteProvider' ;
6+ import type { ResourceDescriptor } from '../../integration' ;
7+
8+ export interface BitbucketRepositoryDescriptor extends ResourceDescriptor {
9+ owner : string ;
10+ name : string ;
11+ }
12+
13+ export interface BitbucketWorkspaceDescriptor extends ResourceDescriptor {
14+ id : string ;
15+ name : string ;
16+ slug : string ;
17+ }
18+
19+ export interface BitbucketRemoteRepositoryDescriptor extends ResourceDescriptor {
20+ resourceId : string ;
21+ owner : string ;
22+ name : string ;
23+ cloneUrlHttps ?: string ;
24+ cloneUrlSsh ?: string ;
25+ }
626
727export type BitbucketPullRequestState = 'OPEN' | 'DECLINED' | 'MERGED' | 'SUPERSEDED' ;
828
You can’t perform that action at this time.
0 commit comments