From c202ee0372932f382a976956d84599d62f0d72e7 Mon Sep 17 00:00:00 2001 From: eximus Date: Mon, 15 Apr 2024 10:02:41 -0400 Subject: [PATCH] issue list - add lowest priority --- bb.example.yaml | 32 ++++++++++++++++++++------------ cmd/issue/list.go | 4 ++-- util/util.go | 4 +++- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/bb.example.yaml b/bb.example.yaml index 042bbfa..aa237de 100644 --- a/bb.example.yaml +++ b/bb.example.yaml @@ -22,7 +22,7 @@ pr_status: pipeline_status: inprogress: - values: ["IN_PROGRESS","in_progress"] + values: ["IN_PROGRESS","in_progress", "INPROGRESS"] icon: "" # ﲊ 羽   color: "1;34" stopped: @@ -30,7 +30,7 @@ pipeline_status: icon: "" #  color: "1;33" pending: - values: ["PENDING","pending"] + values: ["PENDING","NOT_RUN"] icon: "" color: "37" pass: @@ -45,24 +45,32 @@ 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: @@ -70,11 +78,11 @@ jira_type: 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: diff --git a/cmd/issue/list.go b/cmd/issue/list.go index eadac70..2a1877d 100644 --- a/cmd/issue/list.go +++ b/cmd/issue/list.go @@ -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") } diff --git a/util/util.go b/util/util.go index 1b0edb7..955dcbe 100644 --- a/util/util.go +++ b/util/util.go @@ -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;38;5;8m %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 }