(comment: GitLabComment)
| 77 | } |
| 78 | |
| 79 | function 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. */ |
nothing calls this directly
no outgoing calls
no test coverage detected