X Tutup
Skip to content

Commit 0e3c3bb

Browse files
authored
pr view: ensure that PR reviews are always rendered in --comments mode (cli#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.
1 parent 4a476bb commit 0e3c3bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/query_builder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ var prReviews = shortenQuery(`
7878
reactionGroups{content,users{totalCount}}
7979
}
8080
pageInfo{hasNextPage,endCursor}
81+
totalCount
8182
}
8283
`)
8384

0 commit comments

Comments
 (0)
X Tutup