ResolveBugCreateMetadata retrieve a bug that has the exact given metadata on its Create operation, that is, the first operation. It fails if multiple bugs match.
(key string, value string)
| 57 | // its Create operation, that is, the first operation. It fails if multiple bugs |
| 58 | // match. |
| 59 | func (c *RepoCacheBug) ResolveBugCreateMetadata(key string, value string) (*BugCache, error) { |
| 60 | return c.ResolveMatcher(func(excerpt *BugExcerpt) bool { |
| 61 | return excerpt.CreateMetadata[key] == value |
| 62 | }) |
| 63 | } |
| 64 | |
| 65 | // ResolveComment search for a Bug/Comment combination matching the merged |
| 66 | // bug/comment Id prefix. Returns the Bug containing the Comment and the Comment's |