(state, reason string)
| 172 | } |
| 173 | |
| 174 | func colorForIssueState(state, reason string) string { |
| 175 | switch state { |
| 176 | case "open": |
| 177 | return "green" |
| 178 | case "closed": |
| 179 | if reason == "not_planned" { |
| 180 | return "gray" |
| 181 | } |
| 182 | return "magenta" |
| 183 | default: |
| 184 | return "" |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | func colorForPRState(state string) string { |
| 189 | switch state { |
no outgoing calls
no test coverage detected