mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 04:33:28 +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"
|
||||
}
|
||||
} else {
|
||||
if val, ok := opts["edit"]; ok && val == "true" {
|
||||
opts["edit"] = "true"
|
||||
} else {
|
||||
if val, ok := opts["edit"]; ok && val != "true" {
|
||||
opts["edit"] = "false"
|
||||
}
|
||||
}
|
||||
@@ -333,6 +331,8 @@ func populateEnv(args map[string]interface{}) {
|
||||
os.Setenv("JIRA_OPERATION", "assign")
|
||||
} else if val.(bool) {
|
||||
os.Setenv("JIRA_OPERATION", key)
|
||||
} else {
|
||||
os.Setenv("JIRA_OPERATION", "view")
|
||||
}
|
||||
} else {
|
||||
os.Setenv(fmt.Sprintf("JIRA_%s", key), val.(string))
|
||||
|
||||
Reference in New Issue
Block a user