MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / toThreadDto

Function toThreadDto

packages/cli/src/routes/comments.ts:279–291  ·  view source on GitHub ↗
(thread: CommentThreadRow, comments: CommentRow[])

Source from the content-addressed store, hash-verified

277}
278
279function toThreadDto(thread: CommentThreadRow, comments: CommentRow[]): CommentThreadDto {
280 return {
281 id: thread.id,
282 filePath: thread.filePath,
283 side: thread.side,
284 startLine: thread.startLine,
285 endLine: thread.endLine,
286 resolvedAt: thread.resolvedAt?.toISOString() ?? null,
287 createdAt: thread.createdAt.toISOString(),
288 updatedAt: thread.updatedAt.toISOString(),
289 comments: comments.map(toCommentDto),
290 };
291}
292
293function toCommentDto(row: CommentRow): CommentDto {
294 return {

Callers 2

commentRoutesFunction · 0.85
listThreadsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected