mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
cache: also index the first op metadata
This commit is contained in:
parent
95021a07fd
commit
be59fe0d67
3
cache/bug_excerpt.go
vendored
3
cache/bug_excerpt.go
vendored
@ -20,6 +20,8 @@ type BugExcerpt struct {
|
||||
Status bug.Status
|
||||
Author bug.Person
|
||||
Labels []bug.Label
|
||||
|
||||
CreateMetadata map[string]string
|
||||
}
|
||||
|
||||
func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
|
||||
@ -32,6 +34,7 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt {
|
||||
Status: snap.Status,
|
||||
Author: snap.Author,
|
||||
Labels: snap.Labels,
|
||||
CreateMetadata: b.FirstOp().AllMetadata(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user