MCPcopy Create free account
hub / github.com/cli/cli / AnnotationSymbol

Function AnnotationSymbol

pkg/cmd/run/shared/shared.go:259–268  ·  view source on GitHub ↗
(cs *iostreams.ColorScheme, a Annotation)

Source from the content-addressed store, hash-verified

257}
258
259func AnnotationSymbol(cs *iostreams.ColorScheme, a Annotation) string {
260 switch a.Level {
261 case AnnotationFailure:
262 return cs.FailureIcon()
263 case AnnotationWarning:
264 return cs.WarningIcon()
265 default:
266 return "-"
267 }
268}
269
270type CheckRun struct {
271 ID int64

Callers 1

RenderAnnotationsFunction · 0.85

Calls 2

FailureIconMethod · 0.80
WarningIconMethod · 0.80

Tested by

no test coverage detected