mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 04:33:28 +02:00
fix "take" command not honouring user option
"take" was simply a partial on "assign", but accidentally used the value of $USER from the environment rather than `opts["user"]`, preventing the user from overriding this value in config.yml or as a command-line argument.
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ Command Options:
|
||||
setEditing(true)
|
||||
err = c.CmdComment(args["ISSUE"].(string))
|
||||
} else if validCommand("take") {
|
||||
err = c.CmdAssign(args["ISSUE"].(string), user)
|
||||
err = c.CmdAssign(args["ISSUE"].(string), opts["user"])
|
||||
} else if validCommand("browse") || validCommand("b") {
|
||||
opts["browse"] = "true"
|
||||
err = c.Browse(args["ISSUE"].(string))
|
||||
|
||||
Reference in New Issue
Block a user