MCPcopy Create free account
hub / github.com/decaporg/decap-cms / toCommentData

Function toCommentData

packages/decap-cms-backend-gitlab/src/notesApi.ts:79–92  ·  view source on GitHub ↗
(comment: GitLabComment)

Source from the content-addressed store, hash-verified

77}
78
79function toCommentData(comment: GitLabComment): CommentData {
80 return {
81 id: comment.id,
82 body: comment.body,
83 user: comment.author
84 ? {
85 login: comment.author.username,
86 avatar_url: comment.author.avatar_url ?? '',
87 }
88 : null,
89 created_at: comment.created_at,
90 updated_at: comment.updated_at,
91 };
92}
93
94/** The subset of the GitLab API client this needs, so it can be exercised
95 * without standing up the whole backend. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected