MCPcopy Index your code
hub / github.com/cli/cli / DisplayableReviews

Method DisplayableReviews

api/queries_pr_review.go:116–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (pr *PullRequest) DisplayableReviews() PullRequestReviews {
117 published := []PullRequestReview{}
118 for _, prr := range pr.Reviews.Nodes {
119 //Dont display pending reviews
120 //Dont display commenting reviews without top level comment body
121 if prr.State != "PENDING" && !(prr.State == "COMMENTED" && prr.Body == "") {
122 published = append(published, prr)
123 }
124 }
125 return PullRequestReviews{Nodes: published, TotalCount: len(published)}
126}
127
128type ReviewRequests struct {
129 Nodes []struct {

Callers 2

viewRunFunction · 0.80
printHumanPrPreviewFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected