MCPcopy Index your code
hub / github.com/google/git-appraise / getCommentsFromNotes

Function getCommentsFromNotes

review/review.go:264–269  ·  view source on GitHub ↗

getCommentsFromNotes parses the log-structured sequence of comments for a commit, and then builds the corresponding tree-structured comment threads.

(repo repository.Repo, revision string, commentNotes []repository.Note)

Source from the content-addressed store, hash-verified

262// getCommentsFromNotes parses the log-structured sequence of comments for a commit,
263// and then builds the corresponding tree-structured comment threads.
264func getCommentsFromNotes(repo repository.Repo, revision string, commentNotes []repository.Note) ([]CommentThread, *bool) {
265 commentsByHash := comment.ParseAllValid(commentNotes)
266 comments := buildCommentThreads(commentsByHash)
267 resolved := updateThreadsStatus(comments)
268 return comments, resolved
269}
270
271func getSummaryFromNotes(repo repository.Repo, revision string, requestNotes, commentNotes []repository.Note) (*Summary, error) {
272 requests := request.ParseAllValid(requestNotes)

Callers 2

getSummaryFromNotesFunction · 0.85
GetCommentsFunction · 0.85

Calls 2

buildCommentThreadsFunction · 0.85
updateThreadsStatusFunction · 0.85

Tested by

no test coverage detected