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

Method AddCommentWithFiles

cache/bug_cache.go:40–47  ·  view source on GitHub ↗
(message string, files []repository.Hash)

Source from the content-addressed store, hash-verified

38}
39
40func (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
49func (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()

Callers 1

AddCommentMethod · 0.95

Calls 1

AddCommentRawMethod · 0.95

Tested by

no test coverage detected