(issue *search.Issue, cs *iostreams.ColorScheme, colorize bool)
| 157 | } |
| 158 | |
| 159 | func listIssueLabels(issue *search.Issue, cs *iostreams.ColorScheme, colorize bool) string { |
| 160 | if len(issue.Labels) == 0 { |
| 161 | return "" |
| 162 | } |
| 163 | labelNames := make([]string, 0, len(issue.Labels)) |
| 164 | for _, label := range issue.Labels { |
| 165 | if colorize { |
| 166 | labelNames = append(labelNames, cs.Label(label.Color, label.Name)) |
| 167 | } else { |
| 168 | labelNames = append(labelNames, label.Name) |
| 169 | } |
| 170 | } |
| 171 | return strings.Join(labelNames, ", ") |
| 172 | } |
| 173 | |
| 174 | func colorForIssueState(state, reason string) string { |
| 175 | switch state { |
no test coverage detected