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

Function NewAddCommentOp

entities/bug/op_add_comment.go:69–75  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, message string, files []repository.Hash)

Source from the content-addressed store, hash-verified

67}
68
69func NewAddCommentOp(author identity.Interface, unixTime int64, message string, files []repository.Hash) *AddCommentOperation {
70 return &AddCommentOperation{
71 OpBase: dag.NewOpBase(AddCommentOp, author, unixTime),
72 Message: message,
73 Files: files,
74 }
75}
76
77// AddCommentTimelineItem replace a AddComment operation in the Timeline and hold its edition history
78type AddCommentTimelineItem struct {

Callers 6

TestGithubImporterFunction · 0.92
TestGitlabImportFunction · 0.92
TestAddCommentSerializeFunction · 0.85
TestEditFunction · 0.85
AddCommentFunction · 0.85
TestValidateFunction · 0.85

Calls 1

NewOpBaseFunction · 0.92

Tested by 5

TestGithubImporterFunction · 0.74
TestGitlabImportFunction · 0.74
TestAddCommentSerializeFunction · 0.68
TestEditFunction · 0.68
TestValidateFunction · 0.68