BugExcerpt: also store bug labels

This commit is contained in:
Michael Muré 2018-09-09 20:20:24 +02:00
parent a38c1c23eb
commit 21f9840e99
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -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,
}
}