Skip to content

Commit

Permalink
automatically close duplicate issues with "Duplicate" resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Feb 23, 2015
1 parent 050848a commit ebf1700
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions jira/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit ebf1700

Please sign in to comment.