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

Function AnnotationSymbol

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

Source from the content-addressed store, hash-verified

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

Callers 1

RenderAnnotationsFunction · 0.85

Calls 2

FailureIconMethod · 0.80
WarningIconMethod · 0.80

Tested by

no test coverage detected