Skip to content

Commit

Permalink
issue list - add lowest priority
Browse files Browse the repository at this point in the history
  • Loading branch information
3ximus committed Apr 15, 2024
1 parent 311e103 commit 58defa8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
32 changes: 20 additions & 12 deletions bb.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ pr_status:

pipeline_status:
inprogress:
values: ["IN_PROGRESS","in_progress"]
values: ["IN_PROGRESS","in_progress", "INPROGRESS"]
icon: "" # ﲊ 羽  
color: "1;34"
stopped:
values: ["STOPPED","stopped","HALTED","halted"]
icon: "" #
color: "1;33"
pending:
values: ["PENDING","pending"]
values: ["PENDING","NOT_RUN"]
icon: ""
color: "37"
pass:
Expand All @@ -45,36 +45,44 @@ pipeline_status:
jira_status:
inprogress:
values: ["In Progress", "In Progress_T", "NEED CHANGES"]
icon: "" #  
icon: "" #  
color: "1;34" # if I want to remove icon 1;38;5;235;44
todo:
values: ["À FAIRE"]
icon: "" #  
color: "1;33"
blocked:
values: ["Blocked"]
icon: "" #  ﰸ  
color: "1;31"
open:
values: ["OUVERT", "To estimate_T", "Selected for Development"]
icon: "" #
color: "1;34"
color: "1;33"
testing:
values: ["Need Testing"]
values: ["NEED TESTING", "Need Review"]
icon: ""
color: "1;35"
ready:
values: ["READY TO DEPLOY (DEV)", "DONE"]
icon: ""
color: "1;36"
color: "1;32"
blocked:
values: ["Blocked"]
icon: "" #  ﰸ  
color: "1;31"
cancelled:
values: ["Cancelled"]
icon: "" #  ﰸ  
color: "1;31"

jira_type:
bug:
values: ["Bug"]
icon: ""
color: "1;31"
task:
values: ["Tâche", "Improvement"]
values: ["Tâche", "Improvement", "Task"]
icon: ""
color: "1;34"
epic:
values: ["Epic"]
values: ["Epic", "Story"]
icon: ""
color: "1;35"
subtask:
Expand Down
4 changes: 2 additions & 2 deletions cmd/issue/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ func init() {
// display
ListCmd.Flags().BoolP("users", "u", false, "show users")
ListCmd.Flags().BoolP("time", "t", false, "show time information")
ListCmd.Flags().BoolP("parent", "p", true, "show parent tickets")
ListCmd.Flags().IntP("number-results", "n", 10, "max number of results retrieve")
ListCmd.Flags().BoolP("parent", "p", false, "show parent tickets")
ListCmd.Flags().IntP("number-results", "n", 99, "max number of results retrieve")
// sort
ListCmd.Flags().BoolP("priority", "P", false, "sort by priority")
}
Expand Down
4 changes: 3 additions & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ func FormatIssuePriority(id string, name string) string {
priorityString = fmt.Sprintf("\033[1;33m %s\033[m", name)
case "4":
priorityString = fmt.Sprintf("\033[1;34m %s\033[m", name)
case "5":
priorityString = fmt.Sprintf("\033[1;34m %s\033[m", name)
default:
priorityString = fmt.Sprintf("\033[1;37m%s\033[m", name)
priorityString = fmt.Sprintf("\033[1;m %s\033[m", name)
}
return priorityString
}
Expand Down

0 comments on commit 58defa8

Please sign in to comment.