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:
parent
4a476bb400
commit
0e3c3bb4a4
1 changed files with 1 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ var prReviews = shortenQuery(`
|
|||
reactionGroups{content,users{totalCount}}
|
||||
}
|
||||
pageInfo{hasNextPage,endCursor}
|
||||
totalCount
|
||||
}
|
||||
`)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue