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

Function NewCommentTimelineItem

entities/bug/timeline.go:38–54  ·  view source on GitHub ↗
(comment Comment)

Source from the content-addressed store, hash-verified

36}
37
38func NewCommentTimelineItem(comment Comment) CommentTimelineItem {
39 return CommentTimelineItem{
40 // id: comment.id,
41 combinedId: comment.combinedId,
42 Author: comment.Author,
43 Message: comment.Message,
44 Files: comment.Files,
45 CreatedAt: comment.unixTime,
46 LastEdit: comment.unixTime,
47 History: []CommentHistoryStep{
48 {
49 Message: comment.Message,
50 UnixTime: comment.unixTime,
51 },
52 },
53 }
54}
55
56func (c *CommentTimelineItem) CombinedId() entity.CombinedId {
57 return c.combinedId

Callers 2

ApplyMethod · 0.85
ApplyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected