Roll back the place of colorFuncForState
This commit is contained in:
parent
0095fe9a13
commit
4c2f15fe37
3 changed files with 17 additions and 17 deletions
|
|
@ -75,17 +75,3 @@ func Spinner(w io.Writer) *spinner.Spinner {
|
|||
s.Writer = w
|
||||
return s
|
||||
}
|
||||
|
||||
// ColorFuncForState returns a color function for a PR/Issue state
|
||||
func ColorFuncForState(state string) func(string) string {
|
||||
switch state {
|
||||
case "OPEN":
|
||||
return Green
|
||||
case "CLOSED":
|
||||
return Red
|
||||
case "MERGED":
|
||||
return Magenta
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue