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)
| 262 | // getCommentsFromNotes parses the log-structured sequence of comments for a commit, |
| 263 | // and then builds the corresponding tree-structured comment threads. |
| 264 | func 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 | |
| 271 | func getSummaryFromNotes(repo repository.Repo, revision string, requestNotes, commentNotes []repository.Note) (*Summary, error) { |
| 272 | requests := request.ParseAllValid(requestNotes) |
no test coverage detected