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

Method EditCreateComment

cache/bug_cache.go:155–162  ·  view source on GitHub ↗

EditCreateComment is a convenience function to edit the body of a bug (the first comment)

(body string)

Source from the content-addressed store, hash-verified

153
154// EditCreateComment is a convenience function to edit the body of a bug (the first comment)
155func (c *BugCache) EditCreateComment(body string) (entity.CombinedId, *bug.EditCommentOperation, error) {
156 author, err := c.getUserIdentity()
157 if err != nil {
158 return entity.UnsetCombinedId, nil, err
159 }
160
161 return c.EditCreateCommentRaw(author, time.Now().Unix(), body, nil)
162}
163
164// EditCreateCommentRaw is a convenience function to edit the body of a bug (the first comment)
165func (c *BugCache) EditCreateCommentRaw(author identity.Interface, unixTime int64, body string, metadata map[string]string) (entity.CombinedId, *bug.EditCommentOperation, error) {

Callers

nothing calls this directly

Calls 1

EditCreateCommentRawMethod · 0.95

Tested by

no test coverage detected