MCPcopy Index your code
hub / github.com/git-bug/git-bug / ResolveBugCreateMetadata

Method ResolveBugCreateMetadata

cache/bug_subcache.go:59–63  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

57// its Create operation, that is, the first operation. It fails if multiple bugs
58// match.
59func (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

Callers 5

TestGithubImporterFunction · 0.80
TestGithubPushPullFunction · 0.80
TestGitlabImportFunction · 0.80
TestGitlabPushPullFunction · 0.80

Calls 1

ResolveMatcherMethod · 0.80

Tested by 5

TestGithubImporterFunction · 0.64
TestGithubPushPullFunction · 0.64
TestGitlabImportFunction · 0.64
TestGitlabPushPullFunction · 0.64