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

Function formatCommentStatus

pkg/cmd/pr/shared/comments.go:173–184  ·  view source on GitHub ↗
(cs *iostreams.ColorScheme, status string)

Source from the content-addressed store, hash-verified

171)
172
173func formatCommentStatus(cs *iostreams.ColorScheme, status string) string {
174 switch status {
175 case approvedStatus:
176 return fmt.Sprintf(" %s", cs.Green("approved"))
177 case changesRequestedStatus:
178 return fmt.Sprintf(" %s", cs.Red("requested changes"))
179 case commentedStatus, dismissedStatus:
180 return fmt.Sprintf(" %s", strings.ToLower(status))
181 }
182
183 return ""
184}
185
186func formatRawCommentStatus(status string) string {
187 if status == approvedStatus ||

Callers 1

formatCommentFunction · 0.85

Calls 2

GreenMethod · 0.80
RedMethod · 0.80

Tested by

no test coverage detected