(message string, files []repository.Hash)
| 38 | } |
| 39 | |
| 40 | func (c *BugCache) AddCommentWithFiles(message string, files []repository.Hash) (entity.CombinedId, *bug.AddCommentOperation, error) { |
| 41 | author, err := c.getUserIdentity() |
| 42 | if err != nil { |
| 43 | return entity.UnsetCombinedId, nil, err |
| 44 | } |
| 45 | |
| 46 | return c.AddCommentRaw(author, time.Now().Unix(), message, files, nil) |
| 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() |
no test coverage detected