(comments api.Comments, reviews api.PullRequestReviews)
| 27 | } |
| 28 | |
| 29 | func 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 | |
| 38 | func formatRawComment(comment Comment) string { |
| 39 | if comment.IsHidden() { |
no test coverage detected