(author identity.Interface, unixTime int64, message string, files []repository.Hash, metadata map[string]string)
| 47 | } |
| 48 | |
| 49 | func (c *BugCache) AddCommentRaw(author identity.Interface, unixTime int64, message string, files []repository.Hash, metadata map[string]string) (entity.CombinedId, *bug.AddCommentOperation, error) { |
| 50 | c.mu.Lock() |
| 51 | commentId, op, err := bug.AddComment(c.entity, author, unixTime, message, files, metadata) |
| 52 | c.mu.Unlock() |
| 53 | if err != nil { |
| 54 | return entity.UnsetCombinedId, nil, err |
| 55 | } |
| 56 | return commentId, op, c.notifyUpdated() |
| 57 | } |
| 58 | |
| 59 | func (c *BugCache) ChangeLabels(added []string, removed []string) ([]bug.LabelChangeResult, *bug.LabelChangeOperation, error) { |
| 60 | author, err := c.getUserIdentity() |
no test coverage detected