MCPcopy
hub / github.com/cli/cli / formatHiddenComment

Function formatHiddenComment

pkg/cmd/pr/shared/comments.go:197–205  ·  view source on GitHub ↗
(comment Comment)

Source from the content-addressed store, hash-verified

195}
196
197func formatHiddenComment(comment Comment) string {
198 var b strings.Builder
199 fmt.Fprint(&b, comment.AuthorLogin())
200 if comment.Association() != "NONE" {
201 fmt.Fprintf(&b, " (%s)", text.Title(comment.Association()))
202 }
203 fmt.Fprintf(&b, " • This comment has been marked as %s\n\n", comment.HiddenReason())
204 return b.String()
205}

Callers 1

formatCommentFunction · 0.85

Calls 5

TitleFunction · 0.92
AuthorLoginMethod · 0.65
AssociationMethod · 0.65
HiddenReasonMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected