mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
set JIRA_OPERATION to "view" when no operation used (ie: jira GOJIRA-123)
This commit is contained in:
+3
-3
@@ -182,9 +182,7 @@ Command Options:
|
|||||||
opts["edit"] = "true"
|
opts["edit"] = "true"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if val, ok := opts["edit"]; ok && val == "true" {
|
if val, ok := opts["edit"]; ok && val != "true" {
|
||||||
opts["edit"] = "true"
|
|
||||||
} else {
|
|
||||||
opts["edit"] = "false"
|
opts["edit"] = "false"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -333,6 +331,8 @@ func populateEnv(args map[string]interface{}) {
|
|||||||
os.Setenv("JIRA_OPERATION", "assign")
|
os.Setenv("JIRA_OPERATION", "assign")
|
||||||
} else if val.(bool) {
|
} else if val.(bool) {
|
||||||
os.Setenv("JIRA_OPERATION", key)
|
os.Setenv("JIRA_OPERATION", key)
|
||||||
|
} else {
|
||||||
|
os.Setenv("JIRA_OPERATION", "view")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
os.Setenv(fmt.Sprintf("JIRA_%s", key), val.(string))
|
os.Setenv(fmt.Sprintf("JIRA_%s", key), val.(string))
|
||||||
|
|||||||
Reference in New Issue
Block a user