MCPcopy Index your code
hub / github.com/git-bug/git-bug / NewWithFiles

Method NewWithFiles

cache/bug_subcache.go:227–234  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

225// NewWithFiles create a new bug with attached files for the message
226// The new bug is written in the repository (commit)
227func (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.

Callers 1

NewMethod · 0.95

Calls 1

NewRawMethod · 0.95

Tested by

no test coverage detected