MCPcopy
hub / github.com/cli/cli / ReactionGroupList

Function ReactionGroupList

pkg/cmd/pr/shared/reaction_groups.go:10–20  ·  view source on GitHub ↗
(rgs api.ReactionGroups)

Source from the content-addressed store, hash-verified

8)
9
10func ReactionGroupList(rgs api.ReactionGroups) string {
11 var rs []string
12
13 for _, rg := range rgs {
14 if r := formatReactionGroup(rg); r != "" {
15 rs = append(rs, r)
16 }
17 }
18
19 return strings.Join(rs, " • ")
20}
21
22func formatReactionGroup(rg api.ReactionGroup) string {
23 c := rg.Count()

Callers 2

printHumanPrPreviewFunction · 0.92
formatCommentFunction · 0.85

Calls 2

formatReactionGroupFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected