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

Struct Comment

entities/bug/comment.go:13–28  ·  view source on GitHub ↗

Comment represent a comment in a Bug

Source from the content-addressed store, hash-verified

11
12// Comment represent a comment in a Bug
13type Comment struct {
14 // combinedId should be the result of entity.CombineIds with the Bug id and the id
15 // of the Operation that created the comment
16 combinedId entity.CombinedId
17
18 // targetId is the Id of the Operation that originally created that Comment
19 targetId entity.Id
20
21 Author identity.Interface
22 Message string
23 Files []repository.Hash
24
25 // Creation time of the comment.
26 // Should be used only for human display, never for ordering as we can't rely on it in a distributed system.
27 unixTime timestamp.Timestamp
28}
29
30func (c Comment) CombinedId() entity.CombinedId {
31 if c.combinedId == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected