MCPcopy
hub / github.com/cli/cli / colorForIssueState

Function colorForIssueState

pkg/cmd/search/shared/shared.go:174–186  ·  view source on GitHub ↗
(state, reason string)

Source from the content-addressed store, hash-verified

172}
173
174func 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
188func colorForPRState(state string) string {
189 switch state {

Callers 1

displayIssueResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected