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

Function NewBugComment

commands/cmdjson/bug.go:60–67  ·  view source on GitHub ↗
(comment bug.Comment)

Source from the content-addressed store, hash-verified

58}
59
60func NewBugComment(comment bug.Comment) BugComment {
61 return BugComment{
62 Id: comment.CombinedId().String(),
63 HumanId: comment.CombinedId().Human(),
64 Author: NewIdentity(comment.Author),
65 Message: comment.Message,
66 }
67}
68
69type BugExcerpt struct {
70 Id string `json:"id"`

Callers 1

NewBugSnapshotFunction · 0.85

Calls 4

NewIdentityFunction · 0.70
StringMethod · 0.65
CombinedIdMethod · 0.65
HumanMethod · 0.45

Tested by

no test coverage detected