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

Function Symbol

pkg/cmd/run/shared/shared.go:573–587  ·  view source on GitHub ↗
(cs *iostreams.ColorScheme, status Status, conclusion Conclusion)

Source from the content-addressed store, hash-verified

571type colorFunc func(string) string
572
573func Symbol(cs *iostreams.ColorScheme, status Status, conclusion Conclusion) (string, colorFunc) {
574 noColor := func(s string) string { return s }
575 if status == Completed {
576 switch conclusion {
577 case Success:
578 return cs.SuccessIconWithColor(noColor), cs.Green
579 case Skipped, Neutral:
580 return "-", cs.Muted
581 default:
582 return cs.FailureIconWithColor(noColor), cs.Red
583 }
584 }
585
586 return "*", cs.Yellow
587}
588
589func PullRequestForRun(client *api.Client, repo ghrepo.Interface, run Run) (int, error) {
590 type response struct {

Callers 6

promptForJobFunction · 0.92
watchRunFunction · 0.92
RenderRunHeaderFunction · 0.85
RenderJobsFunction · 0.85
RenderJobsCompactFunction · 0.85
SelectRunFunction · 0.85

Calls 2

SuccessIconWithColorMethod · 0.80
FailureIconWithColorMethod · 0.80

Tested by

no test coverage detected