* Type guard to check if an error is an HTTP error from Octokit
(error: unknown)
| 861 | |
| 862 | const markedComments = comments.filter( |
| 863 | c => c.body?.includes('<!-- kilo-review -->') && isAuthoredByApp(c, appId) |
| 864 | ); |
| 865 | |
| 866 | if (markedComments.length > 0) { |
| 867 | const latestComment = markedComments.sort((a, b) => { |
| 868 | return new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime(); |
| 869 | })[0]; |
| 870 | logExceptInTest('[findKiloReviewComment] Found comment with marker', { |
| 871 | owner, |
| 872 | repo, |
| 873 | prNumber, |
no outgoing calls
no test coverage detected