Skip to content

Commit

Permalink
mend bug in mapping of priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
rickschubert committed Nov 10, 2020
1 parent a8b24cd commit fe9fc9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ func getLabels(args []string, project constants.Project) []string {

func mapPriorityWordToPriorityID(priorityPassed string) string {
prioritiesMap := make(map[string]string)
prioritiesMap["critical"] = "5"
prioritiesMap["high"] = "4"
prioritiesMap["critical"] = "1"
prioritiesMap["high"] = "2"
prioritiesMap["medium"] = "3"
prioritiesMap["low"] = "2"
prioritiesMap["lowest"] = "1"
prioritiesMap["low"] = "4"
prioritiesMap["lowest"] = "5"
id, found := prioritiesMap[strings.ToLower(priorityPassed)]
if found {
return id
Expand Down

0 comments on commit fe9fc9b

Please sign in to comment.