@@ -10,7 +10,7 @@ import * as vscode from 'vscode';
1010import { Repository } from '../api/api' ;
1111import { GitApiImpl } from '../api/api1' ;
1212import { AuthProvider , GitHubServerType } from '../common/authentication' ;
13- import { COPILOT_ACCOUNTS , IComment , IReviewThread , Reaction , SubjectType } from '../common/comment' ;
13+ import { COPILOT_ACCOUNTS , IComment , IReviewThread , SubjectType } from '../common/comment' ;
1414import { DiffHunk , parseDiffHunk } from '../common/diffHunk' ;
1515import { GitHubRef } from '../common/githubRef' ;
1616import Logger from '../common/logger' ;
@@ -43,6 +43,7 @@ import {
4343 NotificationSubjectType ,
4444 PullRequest ,
4545 PullRequestMergeability ,
46+ Reaction ,
4647 reviewerId ,
4748 reviewerLabel ,
4849 ReviewState ,
@@ -355,6 +356,7 @@ export function convertRESTPullRequestToRawPullRequest(
355356 projectItems : [ ] , // projects only available through GraphQL API
356357 commits : [ ] , // commits only available through GraphQL API
357358 reactionCount : 0 , // reaction count only available through GraphQL API
359+ reactions : [ ] , // reactions only available through GraphQL API
358360 commentCount : 0 // comment count only available through GraphQL API
359361 } ;
360362
@@ -408,6 +410,7 @@ export function convertRESTIssueToRawPullRequest(
408410 ) ,
409411 projectItems : [ ] , // projects only available through GraphQL API
410412 reactionCount : 0 , // reaction count only available through GraphQL API
413+ reactions : [ ] , // reactions only available through GraphQL API
411414 commentCount : comments
412415 } ;
413416
@@ -786,6 +789,7 @@ export function parseGraphQLPullRequest(
786789 assignees : graphQLPullRequest . assignees ?. nodes . map ( assignee => parseAccount ( assignee , githubRepository ) ) ,
787790 commits : parseCommits ( graphQLPullRequest . commits . nodes ) ,
788791 reactionCount : graphQLPullRequest . reactions . totalCount ,
792+ reactions : parseGraphQLReaction ( graphQLPullRequest . reactionGroups ) ,
789793 commentCount : graphQLPullRequest . comments . totalCount ,
790794 } ;
791795 pr . mergeCommitMeta = parseCommitMeta ( graphQLPullRequest . baseRepository . mergeCommitTitle , graphQLPullRequest . baseRepository . mergeCommitMessage , pr ) ;
@@ -897,6 +901,7 @@ export function parseGraphQLIssue(issue: GraphQL.Issue, githubRepository: GitHub
897901 projectItems : parseProjectItems ( issue . projectItems ?. nodes ) ,
898902 comments : issue . comments . nodes ?. map ( comment => parseIssueComment ( comment , githubRepository ) ) ,
899903 reactionCount : issue . reactions . totalCount ,
904+ reactions : parseGraphQLReaction ( issue . reactionGroups ) ,
900905 commentCount : issue . comments . totalCount
901906 } ;
902907}
0 commit comments