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.
This commit is contained in:
Mislav Marohnić 2021-12-03 18:07:27 +01:00 committed by GitHub
parent 4a476bb400
commit 0e3c3bb4a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,6 +78,7 @@ var prReviews = shortenQuery(`
reactionGroups{content,users{totalCount}}
}
pageInfo{hasNextPage,endCursor}
totalCount
}
`)