From 0e3c3bb4a428eff7fcff472a34e5208561a9406c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 3 Dec 2021 18:07:27 +0100 Subject: [PATCH] pr view: ensure that PR reviews are always rendered in `--comments` mode (#4848) The GraphQL query for review didn't use to request the `TotalCount` field, but that field was checked before rendering the conversation thread in `pr view --comments`. This fixes rendering the conversation thread when a PR only has reviews but no ordinary comments. --- api/query_builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/query_builder.go b/api/query_builder.go index 9fbb0531b..88f8bfa4b 100644 --- a/api/query_builder.go +++ b/api/query_builder.go @@ -78,6 +78,7 @@ var prReviews = shortenQuery(` reactionGroups{content,users{totalCount}} } pageInfo{hasNextPage,endCursor} + totalCount } `)