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

Method EditComment

cache/bug_cache.go:175–182  ·  view source on GitHub ↗
(target entity.CombinedId, message string)

Source from the content-addressed store, hash-verified

173}
174
175func (c *BugCache) EditComment(target entity.CombinedId, message string) (*bug.EditCommentOperation, error) {
176 author, err := c.getUserIdentity()
177 if err != nil {
178 return nil, err
179 }
180
181 return c.EditCommentRaw(author, time.Now().Unix(), target, message, nil)
182}
183
184func (c *BugCache) EditCommentRaw(author identity.Interface, unixTime int64, target entity.CombinedId, message string, metadata map[string]string) (*bug.EditCommentOperation, error) {
185 comment, err := c.Snapshot().SearchComment(target)

Callers 4

testCasesFunction · 0.80
testCasesFunction · 0.80
runBugCommentEditFunction · 0.80
editCommentWithEditorFunction · 0.80

Calls 1

EditCommentRawMethod · 0.95

Tested by 2

testCasesFunction · 0.64
testCasesFunction · 0.64