| 71 | } |
| 72 | |
| 73 | func ListHeader(repoName string, itemName string, matchCount int, totalMatchCount int, hasFilters bool) string { |
| 74 | if hasFilters { |
| 75 | matchVerb := "match" |
| 76 | if totalMatchCount == 1 { |
| 77 | matchVerb = "matches" |
| 78 | } |
| 79 | return fmt.Sprintf("Showing %d of %s in %s that %s your search", matchCount, text.Pluralize(totalMatchCount, itemName), repoName, matchVerb) |
| 80 | } |
| 81 | |
| 82 | return fmt.Sprintf("Showing %d of %s in %s", matchCount, text.Pluralize(totalMatchCount, fmt.Sprintf("open %s", itemName)), repoName) |
| 83 | } |
| 84 | |
| 85 | func PrCheckStatusSummaryWithColor(cs *iostreams.ColorScheme, checks api.PullRequestChecksStatus) string { |
| 86 | var summary = cs.Muted("No checks") |