diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/close.go | 7 | ||||
-rw-r--r-- | commands/open.go | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/commands/close.go b/commands/close.go index 6e668a50..15f50926 100644 --- a/commands/close.go +++ b/commands/close.go @@ -23,7 +23,12 @@ func runCloseBug(repo repository.Repo, args []string) error { return err } - op := operations.NewSetStatusOp(bug.ClosedStatus) + author, err := bug.GetUser(repo) + if err != nil { + return err + } + + op := operations.NewSetStatusOp(author, bug.ClosedStatus) b.Append(op) diff --git a/commands/open.go b/commands/open.go index 91704da3..56416931 100644 --- a/commands/open.go +++ b/commands/open.go @@ -23,7 +23,12 @@ func runOpenBug(repo repository.Repo, args []string) error { return err } - op := operations.NewSetStatusOp(bug.OpenStatus) + author, err := bug.GetUser(repo) + if err != nil { + return err + } + + op := operations.NewSetStatusOp(author, bug.OpenStatus) b.Append(op) |