aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-01 21:55:41 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-01 21:55:41 +0200
commitbe59fe0d67805117f537ec64dea92b7113cb387a (patch)
tree7bfe34792645324231feadfb599303cdeff63d01
parent95021a07fd8bda5fdbc31772238b2b847a3b814a (diff)
downloadgit-bug-be59fe0d67805117f537ec64dea92b7113cb387a.tar.gz
cache: also index the first op metadata
-rw-r--r--cache/bug_excerpt.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go
index 426827e6..7a11fa82 100644
--- a/cache/bug_excerpt.go
+++ b/cache/bug_excerpt.go
@@ -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(),
}
}