MCPcopy Create free account
hub / github.com/google/git-appraise / Parse

Function Parse

review/comment/comment.go:138–143  ·  view source on GitHub ↗

Parse parses a review comment from a git note.

(note repository.Note)

Source from the content-addressed store, hash-verified

136
137// Parse parses a review comment from a git note.
138func Parse(note repository.Note) (Comment, error) {
139 bytes := []byte(note)
140 var comment Comment
141 err := json.Unmarshal(bytes, &comment)
142 return comment, err
143}
144
145// ParseAllValid takes collection of git notes and tries to parse a review
146// comment from each one. Any notes that are not valid review comments get

Callers 1

ParseAllValidFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected