mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
automatically close duplicate issues with "Duplicate" resolution
This commit is contained in:
+7
-1
@@ -224,10 +224,16 @@ Command Options:
|
||||
args["ISSUE"].(string),
|
||||
)
|
||||
} else if validCommand("dups") {
|
||||
err = c.CmdDups(
|
||||
if err = c.CmdDups(
|
||||
args["DUPLICATE"].(string),
|
||||
args["ISSUE"].(string),
|
||||
); err == nil {
|
||||
opts["resolution"] = "Duplicate"
|
||||
err = c.CmdTransition(
|
||||
args["DUPLICATE"].(string),
|
||||
"close",
|
||||
)
|
||||
}
|
||||
} else if validCommand("watch") {
|
||||
err = c.CmdWatch(
|
||||
args["ISSUE"].(string),
|
||||
|
||||
Reference in New Issue
Block a user