aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations/create.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-01 02:15:40 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-01 02:17:06 +0200
commitc875d40e631f83507b602807480be96dae05fc85 (patch)
treea81b0909eda009acb395d936d1e2bf09e03cff3a /bug/operations/create.go
parent2f88c28c59ce0480e64dfba6d820dc6f7589a6cf (diff)
downloadgit-bug-c875d40e631f83507b602807480be96dae05fc85.tar.gz
termui: add a view to display a bug
Diffstat (limited to 'bug/operations/create.go')
-rw-r--r--bug/operations/create.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/bug/operations/create.go b/bug/operations/create.go
index 4c1dd32e..0ee7e857 100644
--- a/bug/operations/create.go
+++ b/bug/operations/create.go
@@ -23,6 +23,8 @@ func (op CreateOperation) Apply(snapshot bug.Snapshot) bug.Snapshot {
UnixTime: op.UnixTime,
},
}
+ snapshot.Author = op.Author
+ snapshot.CreatedAt = op.Time()
return snapshot
}