| 57 | } |
| 58 | |
| 59 | func (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 | |
| 68 | func (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() |