@@ -35,7 +35,7 @@ interface BitbucketWorkspaceDescriptor extends ResourceDescriptor {
35
35
36
36
interface BitbucketRemoteRepositoryDescriptor extends ResourceDescriptor {
37
37
id : string ;
38
- // nodeId?: string;
38
+ nodeId ?: string ;
39
39
resourceName : string ;
40
40
owner : string ;
41
41
name : string ;
@@ -330,10 +330,10 @@ export class BitbucketIntegration extends HostingIntegration<
330
330
repoDescriptors : BitbucketRemoteRepositoryDescriptor [ ] ,
331
331
) : PullRequest {
332
332
const baseRepoDescriptor = repoDescriptors . find ( r => r . name === remotePullRequest . repository . name ) ;
333
- const headRepoDescriptor =
334
- remotePullRequest . headRepository != null
335
- ? repoDescriptors . find ( r => r . name === remotePullRequest . headRepository ! . name )
336
- : undefined ;
333
+ // const headRepoDescriptor =
334
+ // remotePullRequest.headRepository != null
335
+ // ? repoDescriptors.find(r => r.name === remotePullRequest.headRepository!.name)
336
+ // : undefined;
337
337
if ( baseRepoDescriptor != null ) {
338
338
remotePullRequest . repository . remoteInfo = {
339
339
...remotePullRequest . repository . remoteInfo ,
@@ -342,21 +342,22 @@ export class BitbucketIntegration extends HostingIntegration<
342
342
} ;
343
343
}
344
344
345
- if ( headRepoDescriptor != null ) {
346
- remotePullRequest . headRepository = {
347
- ...remotePullRequest . headRepository ,
348
- id : remotePullRequest . headRepository ?. id ?? headRepoDescriptor . id ,
349
- name : remotePullRequest . headRepository ?. name ?? headRepoDescriptor . name ,
350
- owner : {
351
- login : remotePullRequest . headRepository ?. owner . login ?? headRepoDescriptor . resourceName ,
352
- } ,
353
- remoteInfo : {
354
- ...remotePullRequest . headRepository ?. remoteInfo ,
355
- cloneUrlHTTPS : headRepoDescriptor . cloneUrlHttps ?? '' ,
356
- cloneUrlSSH : headRepoDescriptor . cloneUrlSsh ?? '' ,
357
- } ,
358
- } ;
359
- }
345
+ // if (headRepoDescriptor != null) {
346
+ // remotePullRequest.headRepository = {
347
+ // ...remotePullRequest.headRepository,
348
+ // id: remotePullRequest.headRepository?.id ?? headRepoDescriptor.id,
349
+ // name: remotePullRequest.headRepository?.name ?? headRepoDescriptor.name,
350
+ // owner: {
351
+ // login: remotePullRequest.headRepository?.owner.login ?? headRepoDescriptor.resourceName,
352
+ // },
353
+ // remoteInfo: {
354
+ // ...remotePullRequest.headRepository?.remoteInfo,
355
+ // cloneUrlHTTPS: headRepoDescriptor.cloneUrlHttps ?? '',
356
+ // cloneUrlSSH: headRepoDescriptor.cloneUrlSsh ?? '',
357
+ // },
358
+ // };
359
+ // }
360
+ remotePullRequest . graphQLId = remotePullRequest . id ;
360
361
return fromProviderPullRequest ( remotePullRequest , this ) ;
361
362
}
362
363
}
0 commit comments