MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isHttpError

Function isHttpError

apps/web/src/lib/integrations/platforms/github/adapter.ts:863–870  ·  view source on GitHub ↗

* Type guard to check if an error is an HTTP error from Octokit

(error: unknown)

Source from the content-addressed store, hash-verified

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,

Callers 8

createGitHubBranchFunction · 0.85
getGitHubReviewCommentFunction · 0.85
isRateLimitErrorFunction · 0.85
getRepositoryDetailsFunction · 0.85
checkExistingForkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected