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

Function createGitHubBotLinkState

apps/web/src/lib/bot/github-link-state.ts:27–41  ·  view source on GitHub ↗
(
  userId: string,
  installationId: string,
  callbackPath = '/github/link'
)

Source from the content-addressed store, hash-verified

25 if (
26 payload.githubAppType !== undefined &&
27 payload.githubAppType !== 'standard' &&
28 payload.githubAppType !== 'lite'
29 ) {
30 return null;
31 }
32 if (
33 payload.platformIntegrationId !== undefined &&
34 !z.uuid().safeParse(payload.platformIntegrationId).success
35 ) {
36 return null;
37 }
38 return {
39 userId: payload.userId,
40 installationId: payload.installationId,
41 callbackPath: payload.callbackPath,
42 githubAppType: payload.githubAppType,
43 platformIntegrationId: payload.platformIntegrationId as string | undefined,
44 };

Callers 1

GETFunction · 0.90

Calls 2

signFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected