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

Function formatReactionGroup

pkg/cmd/pr/shared/reaction_groups.go:22–32  ·  view source on GitHub ↗
(rg api.ReactionGroup)

Source from the content-addressed store, hash-verified

20}
21
22func formatReactionGroup(rg api.ReactionGroup) string {
23 c := rg.Count()
24 if c == 0 {
25 return ""
26 }
27 e := rg.Emoji()
28 if e == "" {
29 return ""
30 }
31 return fmt.Sprintf("%v %s", c, e)
32}

Callers 1

ReactionGroupListFunction · 0.85

Calls 2

CountMethod · 0.80
EmojiMethod · 0.80

Tested by

no test coverage detected