From d8726cb5624d6868f1fe7246bb78a806438dc4e9 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 28 Mar 2025 11:16:58 +0100 Subject: [PATCH] fix(git-node): retrieve reviewed commit info --- lib/queries/Reviews.gql | 3 +++ lib/reviews.js | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/queries/Reviews.gql b/lib/queries/Reviews.gql index 4761fdcb..aec43992 100644 --- a/lib/queries/Reviews.gql +++ b/lib/queries/Reviews.gql @@ -13,6 +13,9 @@ query Reviews($prid: Int!, $owner: String!, $repo: String!, $after: String) { author { login } + commit { + oid + } authorCanPushToRepository url publishedAt diff --git a/lib/reviews.js b/lib/reviews.js index ac51a60b..51443adf 100644 --- a/lib/reviews.js +++ b/lib/reviews.js @@ -29,6 +29,7 @@ export class Review { * @property {string} bodyText * @property {string} state * @property {{login: string}} author + * @property {{oid:string}} commit * @property {string} url * @property {string} publishedAt *