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

Function htmlPage

apps/web/src/app/api/integrations/github/callback/route.ts:35–47  ·  view source on GitHub ↗
(title: string, message: string, status = 200)

Source from the content-addressed store, hash-verified

33import { effectiveAppTypeCondition } from '@/lib/integrations/db/predicates';
34import { ensureMemberOrganizationAccess } from '@kilocode/web-shared/routers/organizations/utils';
35import {
36 createPendingIntegration,
37 findGitHubBotLinkIntegrations,
38 findIntegrationByInstallationIdForOwner,
39 upsertPlatformIntegrationForOwner,
40} from '@/lib/integrations/db/platform-integrations';
41import type {
42 PlatformRepository,
43 IntegrationPermissions,
44 Owner,
45} from '@/lib/integrations/core/types';
46import { db } from '@kilocode/web-shared/lib/drizzle';
47import { and, eq, inArray, isNull, sql } from 'drizzle-orm';
48import { captureException, captureMessage } from '@sentry/nextjs';
49import { verifyGitHubBotLinkState } from '@/lib/bot/github-link-state';
50import { linkKiloUser } from '@/lib/bot-identity';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected