MCPcopy Create free account
hub / github.com/git-bug/git-bug / NewEditCommentOp

Function NewEditCommentOp

entities/bug/op_edit_comment.go:104–111  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, target entity.Id, message string, files []repository.Hash)

Source from the content-addressed store, hash-verified

102}
103
104func NewEditCommentOp(author identity.Interface, unixTime int64, target entity.Id, message string, files []repository.Hash) *EditCommentOperation {
105 return &EditCommentOperation{
106 OpBase: dag.NewOpBase(EditCommentOp, author, unixTime),
107 Target: target,
108 Message: message,
109 Files: files,
110 }
111}
112
113// EditComment is a convenience function to apply the operation
114func EditComment(b Interface, author identity.Interface, unixTime int64, target entity.Id, message string, files []repository.Hash, metadata map[string]string) (entity.CombinedId, *EditCommentOperation, error) {

Callers 4

TestGithubImporterFunction · 0.92
EditCommentFunction · 0.85
TestEditFunction · 0.85
TestEditCommentSerializeFunction · 0.85

Calls 1

NewOpBaseFunction · 0.92

Tested by 3

TestGithubImporterFunction · 0.74
TestEditFunction · 0.68
TestEditCommentSerializeFunction · 0.68