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

Method ChangeLabelsRaw

cache/bug_cache.go:68–76  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, added []string, removed []string, metadata map[string]string)

Source from the content-addressed store, hash-verified

66}
67
68func (c *BugCache) ChangeLabelsRaw(author identity.Interface, unixTime int64, added []string, removed []string, metadata map[string]string) ([]bug.LabelChangeResult, *bug.LabelChangeOperation, error) {
69 c.mu.Lock()
70 changes, op, err := bug.ChangeLabels(c.entity, author, unixTime, added, removed, metadata)
71 c.mu.Unlock()
72 if err != nil {
73 return changes, nil, err
74 }
75 return changes, op, c.notifyUpdated()
76}
77
78func (c *BugCache) ForceChangeLabels(added []string, removed []string) (*bug.LabelChangeOperation, error) {
79 author, err := c.getUserIdentity()

Callers 2

ChangeLabelsMethod · 0.95
BugChangeLabelsMethod · 0.80

Calls 3

ChangeLabelsFunction · 0.92
LockMethod · 0.65
notifyUpdatedMethod · 0.45

Tested by

no test coverage detected