(value: unknown)
| 3244 | } |
| 3245 | |
| 3246 | function compactComment(value: unknown): unknown { |
| 3247 | const comment = asRecord(value); |
| 3248 | return { |
| 3249 | id: comment.id, |
| 3250 | author: login(comment.user), |
| 3251 | authorAssociation: normalizeAuthorAssociation(comment.author_association), |
| 3252 | url: comment.html_url, |
| 3253 | createdAt: comment.created_at, |
| 3254 | updatedAt: comment.updated_at, |
| 3255 | body: truncateText(comment.body, 6000), |
| 3256 | }; |
| 3257 | } |
| 3258 | |
| 3259 | const CLAWSWEEPER_BOT_AUTHORS = new Set( |
| 3260 | [ |
nothing calls this directly
no test coverage detected