automatically close duplicate issues with "Duplicate" resolution

This commit is contained in:
Cory Bennett
2015-02-23 12:09:40 -08:00
parent 050848adea
commit ebf170085c
+8 -2
View File
@@ -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),