(item, authorHint = 'codex')
| 372 | |
| 373 | function itemAuthor(item) { |
| 374 | return item.author?.login || item.user?.login || item.user || item.author || ''; |
| 375 | } |
| 376 | |
| 377 | function itemBody(item) { |
| 378 | return item.body || item.comment || item.review || item.message || ''; |
| 379 | } |
| 380 | |
| 381 | function looksLikeCodexReviewItem(item, authorHint = 'codex') { |
| 382 | const author = String(itemAuthor(item)).toLowerCase(); |
no test coverage detected