MCPcopy Create free account
hub / github.com/git-bug/git-bug / SetMetadata

Method SetMetadata

cache/bug_cache.go:202–209  ·  view source on GitHub ↗
(target entity.Id, newMetadata map[string]string)

Source from the content-addressed store, hash-verified

200}
201
202func (c *BugCache) SetMetadata(target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*bug.Snapshot], error) {
203 author, err := c.getUserIdentity()
204 if err != nil {
205 return nil, err
206 }
207
208 return c.SetMetadataRaw(author, time.Now().Unix(), target, newMetadata)
209}
210
211func (c *BugCache) SetMetadataRaw(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*bug.Snapshot], error) {
212 c.mu.Lock()

Callers

nothing calls this directly

Calls 1

SetMetadataRawMethod · 0.95

Tested by

no test coverage detected