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

Function RawCommentList

pkg/cmd/pr/shared/comments.go:29–36  ·  view source on GitHub ↗
(comments api.Comments, reviews api.PullRequestReviews)

Source from the content-addressed store, hash-verified

27}
28
29func RawCommentList(comments api.Comments, reviews api.PullRequestReviews) string {
30 sortedComments := sortComments(comments, reviews)
31 var b strings.Builder
32 for _, comment := range sortedComments {
33 fmt.Fprint(&b, formatRawComment(comment))
34 }
35 return b.String()
36}
37
38func formatRawComment(comment Comment) string {
39 if comment.IsHidden() {

Callers 1

viewRunFunction · 0.92

Calls 3

sortCommentsFunction · 0.85
formatRawCommentFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected