aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-09 20:20:24 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-09 20:20:24 +0200
commit21f9840e991ae569ec1efa404011e9a16ed2ab3b (patch)
tree058becc74493d4c1435d31db187a46a781e8c990 /cache
parenta38c1c23eb2f768168a508d5f6d8365fe3a8884e (diff)
downloadgit-bug-21f9840e991ae569ec1efa404011e9a16ed2ab3b.tar.gz
BugExcerpt: also store bug labels
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_excerpt.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index 31e1951f..94b46ccc 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -19,6 +19,7 @@ type BugExcerpt struct {
Status bug.Status
Author bug.Person
+ Labels []bug.Label
}
func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) BugExcerpt {
@@ -30,6 +31,7 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) BugExcerpt {
EditUnixTime: snap.LastEditUnix(),
Status: snap.Status,
Author: snap.Author,
+ Labels: snap.Labels,
}
}