@@ -444,6 +444,7 @@ export function convertRESTReviewEvent(
444444 authorAssociation : review . user ! . type ,
445445 state : review . state as 'COMMENTED' | 'APPROVED' | 'CHANGES_REQUESTED' | 'PENDING' ,
446446 id : review . id ,
447+ reactions : undefined // reactions only available through GraphQL API
447448 } ;
448449}
449450
@@ -560,6 +561,7 @@ export function parseGraphQlIssueComment(comment: GraphQL.IssueComment, githubRe
560561 htmlUrl : comment . url ,
561562 graphNodeId : comment . id ,
562563 diffHunk : '' ,
564+ reactions : parseGraphQLReaction ( comment . reactionGroups ) ,
563565 } ;
564566}
565567
@@ -994,6 +996,7 @@ export function parseGraphQLReviewEvent(
994996 authorAssociation : review . authorAssociation ,
995997 state : review . state ,
996998 id : review . databaseId ,
999+ reactions : parseGraphQLReaction ( review . reactionGroups ) ,
9971000 } ;
9981001}
9991002
@@ -1129,6 +1132,7 @@ export async function parseCombinedTimelineEvents(
11291132 id : commentEvent . databaseId ,
11301133 graphNodeId : commentEvent . id ,
11311134 createdAt : commentEvent . createdAt ,
1135+ reactions : parseGraphQLReaction ( commentEvent . reactionGroups ) ,
11321136 } ) ;
11331137 break ;
11341138 case Common . EventType . Reviewed :
@@ -1144,6 +1148,7 @@ export async function parseCombinedTimelineEvents(
11441148 authorAssociation : reviewEvent . authorAssociation ,
11451149 state : reviewEvent . state ,
11461150 id : reviewEvent . databaseId ,
1151+ reactions : parseGraphQLReaction ( reviewEvent . reactionGroups ) ,
11471152 } ) ;
11481153 break ;
11491154 case Common . EventType . Committed :
0 commit comments