NewWithFiles create a new bug with attached files for the message The new bug is written in the repository (commit)
(title string, message string, files []repository.Hash)
| 225 | // NewWithFiles create a new bug with attached files for the message |
| 226 | // The new bug is written in the repository (commit) |
| 227 | func (c *RepoCacheBug) NewWithFiles(title string, message string, files []repository.Hash) (*BugCache, *bug.CreateOperation, error) { |
| 228 | author, err := c.getUserIdentity() |
| 229 | if err != nil { |
| 230 | return nil, nil, err |
| 231 | } |
| 232 | |
| 233 | return c.NewRaw(author, time.Now().Unix(), title, message, files, nil) |
| 234 | } |
| 235 | |
| 236 | // NewRaw create a new bug with attached files for the message, as |
| 237 | // well as metadata for the Create operation. |