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

Function EditCreateComment

entities/bug/op_edit_comment.go:127–130  ·  view source on GitHub ↗

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

(b Interface, author identity.Interface, unixTime int64, message string, files []repository.Hash, metadata map[string]string)

Source from the content-addressed store, hash-verified

125
126// EditCreateComment is a convenience function to edit the body of a bug (the first comment)
127func EditCreateComment(b Interface, author identity.Interface, unixTime int64, message string, files []repository.Hash, metadata map[string]string) (entity.CombinedId, *EditCommentOperation, error) {
128 createOp := b.FirstOp().(*CreateOperation)
129 return EditComment(b, author, unixTime, createOp.Id(), message, files, metadata)
130}

Callers 1

EditCreateCommentRawMethod · 0.92

Calls 3

EditCommentFunction · 0.85
FirstOpMethod · 0.65
IdMethod · 0.65

Tested by

no test coverage detected