(cs *iostreams.ColorScheme, status Status, conclusion Conclusion)
| 601 | type colorFunc func(string) string |
| 602 | |
| 603 | func Symbol(cs *iostreams.ColorScheme, status Status, conclusion Conclusion) (string, colorFunc) { |
| 604 | noColor := func(s string) string { return s } |
| 605 | if status == Completed { |
| 606 | switch conclusion { |
| 607 | case Success: |
| 608 | return cs.SuccessIconWithColor(noColor), cs.Green |
| 609 | case Skipped, Neutral: |
| 610 | return "-", cs.Muted |
| 611 | default: |
| 612 | return cs.FailureIconWithColor(noColor), cs.Red |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | return "*", cs.Yellow |
| 617 | } |
| 618 | |
| 619 | func PullRequestForRun(client *api.Client, repo ghrepo.Interface, run Run) (int, error) { |
| 620 | type response struct { |
no test coverage detected