EditCreateComment is a convenience function to edit the body of a bug (the first comment)
(body string)
| 153 | |
| 154 | // EditCreateComment is a convenience function to edit the body of a bug (the first comment) |
| 155 | func (c *BugCache) EditCreateComment(body string) (entity.CombinedId, *bug.EditCommentOperation, error) { |
| 156 | author, err := c.getUserIdentity() |
| 157 | if err != nil { |
| 158 | return entity.UnsetCombinedId, nil, err |
| 159 | } |
| 160 | |
| 161 | return c.EditCreateCommentRaw(author, time.Now().Unix(), body, nil) |
| 162 | } |
| 163 | |
| 164 | // EditCreateCommentRaw is a convenience function to edit the body of a bug (the first comment) |
| 165 | func (c *BugCache) EditCreateCommentRaw(author identity.Interface, unixTime int64, body string, metadata map[string]string) (entity.CombinedId, *bug.EditCommentOperation, error) { |
nothing calls this directly
no test coverage detected