aboutsummaryrefslogtreecommitdiffstats
path: root/commands/open.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-18 00:16:06 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-18 00:16:06 +0200
commitba3281dc9918fa49f10c2a166b5b631a931d2d51 (patch)
treef6e9d17fa7828634f250c7af0674d5405ba0d224 /commands/open.go
parent6f83d89274fc796e01149c84b91b8aa2066f0273 (diff)
downloadgit-bug-ba3281dc9918fa49f10c2a166b5b631a931d2d51.tar.gz
all operations now have an author and a timestamp
Diffstat (limited to 'commands/open.go')
-rw-r--r--commands/open.go7
1 files changed, 6 insertions, 1 deletions
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)