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

Method AddCommentRaw

cache/bug_cache.go:49–57  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, message string, files []repository.Hash, metadata map[string]string)

Source from the content-addressed store, hash-verified

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()
51 commentId, op, err := bug.AddComment(c.entity, author, unixTime, message, files, metadata)
52 c.mu.Unlock()
53 if err != nil {
54 return entity.UnsetCombinedId, nil, err
55 }
56 return commentId, op, c.notifyUpdated()
57}
58
59func (c *BugCache) ChangeLabels(added []string, removed []string) ([]bug.LabelChangeResult, *bug.LabelChangeOperation, error) {
60 author, err := c.getUserIdentity()

Callers 8

AddCommentWithFilesMethod · 0.95
ensureCommentMethod · 0.80
ImportAllMethod · 0.80
ensureIssueEventMethod · 0.80
ensureCommentMethod · 0.80
BugAddCommentMethod · 0.80
BugAddCommentAndCloseMethod · 0.80

Calls 3

AddCommentFunction · 0.92
LockMethod · 0.65
notifyUpdatedMethod · 0.45

Tested by

no test coverage detected