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

Method ChangeLabels

cache/bug_cache.go:59–66  ·  view source on GitHub ↗
(added []string, removed []string)

Source from the content-addressed store, hash-verified

57}
58
59func (c *BugCache) ChangeLabels(added []string, removed []string) ([]bug.LabelChangeResult, *bug.LabelChangeOperation, error) {
60 author, err := c.getUserIdentity()
61 if err != nil {
62 return nil, nil, err
63 }
64
65 return c.ChangeLabelsRaw(author, time.Now().Unix(), added, removed, nil)
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()

Callers 5

testCasesFunction · 0.80
testCasesFunction · 0.80
runBugLabelNewFunction · 0.80
runBugLabelRmFunction · 0.80
saveAndReturnMethod · 0.80

Calls 1

ChangeLabelsRawMethod · 0.95

Tested by 2

testCasesFunction · 0.64
testCasesFunction · 0.64