MCPcopy Create free account

hub / github.com/brianlovin/github-stars-notion-sync / functions

Functions80 in github.com/brianlovin/github-stars-notion-sync

↓ 13 callersFunctionrewriteRelativeUrls
(markdown: string, opts: RewriteOptions)
src/markdown.ts:40
↓ 11 callersFunctionok
(s: string)
scripts/lib.ts:29
↓ 11 callersFunctionrowFor
(id: string, createdAt: string, pageId: string)
tests/upsert.test.ts:40
↓ 9 callersFunctionbail
(s: string)
scripts/lib.ts:31
↓ 7 callersFunctionbuildRepoProps
(rec: FullRepoRecord, syncedAt: Date = new Date())
src/repo-props.ts:58
↓ 6 callersFunctiongithubRequest
( path: string, opts: GitHubClientOptions, req: RequestOptions = {}, )
src/github.ts:48
↓ 6 callersFunctionrunNtn
( args: string[], { capture = false, quiet = false }: { capture?: boolean; quiet?: boolean } = {}, )
scripts/lib.ts:133
↓ 6 callersFunctionstep
(s: string)
scripts/lib.ts:27
↓ 5 callersFunctionarchiveDuplicates
(notion: Client, dataSourceId: string, id: string)
src/upsert.ts:70
↓ 4 callersFunctionisAbsolute
(url: string)
src/markdown.ts:31
↓ 4 callersFunctionmakeFakeNotion
(queryRows: QueryRow[])
tests/upsert.test.ts:17
↓ 4 callersFunctionnormalize
(path: string)
src/markdown.ts:35
↓ 4 callersFunctionprompt
(rl: readline.Interface, question: string, fallback?: string)
scripts/lib.ts:35
↓ 4 callersFunctionqueryRows
( notion: Client, dataSourceId: string, externalId?: string, )
src/query.ts:22
↓ 4 callersFunctionrequireEnv
(name: string)
scripts/lib.ts:62
↓ 4 callersFunctionselectProp
(name: string | null | undefined)
src/repo-props.ts:39
↓ 4 callersMethodstop
(finalMessage?: string)
scripts/lib.ts:110
↓ 4 callersMethodwait
()
scripts/backfill.ts:57
↓ 3 callersFunctionfail
(s: string)
scripts/lib.ts:30
↓ 3 callersFunctionnotionClient
(token: string)
scripts/lib.ts:70
↓ 3 callersFunctionnumberProp
(n: number | null | undefined)
src/repo-props.ts:38
↓ 3 callersFunctionreadDotenv
(path: string)
scripts/lib.ts:43
↓ 3 callersFunctionreadExistingIds
( notion: Client, dataSourceId: string, )
src/upsert.ts:55
↓ 3 callersMethodrender
()
scripts/lib.ts:116
↓ 3 callersFunctionsanitizeOptionName
(raw: string)
src/repos-schema.ts:65
↓ 3 callersMethodstart
(label: string)
scripts/lib.ts:94
↓ 3 callersFunctiontruncateMarkdown
( markdown: string, maxBytes: number, opts: RewriteOptions, )
src/markdown.ts:89
↓ 3 callersFunctionurlProp
(u: string | null | undefined)
src/repo-props.ts:32
↓ 2 callersFunctionbuildEnv
* Single source of truth for the `.env` shape. Merge prior values with * fresh ones — anything blank stays blank (writeDotenv filters empties).
scripts/setup.ts:122
↓ 2 callersFunctionbuildRepoIcon
(owner: string)
src/repo-props.ts:85
↓ 2 callersFunctionconfigFromEnv
(env: Record<string, string | undefined>)
scripts/backfill.ts:44
↓ 2 callersFunctiondateProp
(iso: string | null | undefined)
src/repo-props.ts:33
↓ 2 callersFunctionfetchFullRepo
( star: StarredRepoMinimal, opts: GitHubClientOptions, )
src/github.ts:286
↓ 2 callersFunctiongetStarredPage
( page: number, perPage: number, opts: GitHubClientOptions, )
src/github.ts:123
↓ 2 callersFunctionghOpts
()
src/tools.ts:30
↓ 2 callersFunctionlabelFor
(p: number)
scripts/backfill.ts:80
↓ 2 callersFunctionmultiSelectProp
(names: readonly string[])
src/repo-props.ts:43
↓ 2 callersFunctionparseIntOrNull
(raw: string | null)
src/github.ts:261
↓ 2 callersFunctionrichTextProp
(s: string | null | undefined)
src/repo-props.ts:18
↓ 2 callersFunctionrunBackfill
(cfg: BackfillConfig)
scripts/backfill.ts:66
↓ 2 callersFunctionsleep
(ms: number)
src/github.ts:267
↓ 2 callersFunctionsplitFullName
(fullName: string)
src/tools.ts:75
↓ 2 callersFunctionupsertRepoRow
( notion: Client, rec: FullRepoRecord, opts: UpsertOptions, )
src/upsert.ts:30
↓ 2 callersFunctionwriteDotenv
(path: string, vars: Record<string, string>)
scripts/lib.ts:53
↓ 1 callersFunctionBLOB_BASE
(o: string, r: string, b: string)
src/markdown.ts:28
↓ 1 callersFunctionRAW_BASE
(o: string, r: string, b: string)
src/markdown.ts:26
↓ 1 callersFunctionassertEnv
()
src/index.ts:39
↓ 1 callersFunctionbuildBodyMarkdown
(rec: FullRepoRecord, maxBytes: number)
src/upsert.ts:93
↓ 1 callersFunctionbuildRunAuditRow
( started: Date, page: number, pageItemCount: number, added: number, errorLog: ReadonlyArray<{ fullName:
src/index.ts:171
↓ 1 callersFunctionbuildRunBody
( started: Date, page: number, pageItemCount: number, added: number, errorLog: ReadonlyArray<{ fullName:
src/index.ts:203
↓ 1 callersFunctioncheckboxProp
(b: boolean)
src/repo-props.ts:37
↓ 1 callersFunctioncreateDatabase
(notion: Client, parent: any)
scripts/setup.ts:68
↓ 1 callersFunctioncreatePageWithMarkdown
( token: string, dataSourceId: string, properties: unknown, icon: unknown, markdown: string, )
src/upsert.ts:112
↓ 1 callersFunctioncreateViews
(notion: Client, databaseId: string, dataSourceId: string)
scripts/setup.ts:87
↓ 1 callersFunctionextractNotionId
(input: string)
scripts/setup.ts:52
↓ 1 callersFunctionfirst
(it: AsyncIterable<T>)
src/upsert.ts:88
↓ 1 callersFunctiongetLanguages
( owner: string, repo: string, opts: GitHubClientOptions, )
src/github.ts:204
↓ 1 callersFunctiongetReadme
( owner: string, repo: string, opts: GitHubClientOptions, )
src/github.ts:234
↓ 1 callersFunctiongetRepo
( owner: string, repo: string, opts: GitHubClientOptions, )
src/github.ts:173
↓ 1 callersFunctionhasNtn
()
scripts/lib.ts:123
↓ 1 callersFunctioninfo
(s: string)
scripts/lib.ts:28
↓ 1 callersFunctionmain
()
scripts/dedup.ts:14
↓ 1 callersFunctionmain
()
scripts/setup.ts:150
↓ 1 callersFunctionntnAuthed
()
scripts/lib.ts:127
↓ 1 callersFunctionparseRetryAfter
(raw: string | null)
src/github.ts:252
↓ 1 callersFunctionpickGithubToken
(env: Record<string, string | undefined>)
scripts/backfill.ts:36
↓ 1 callersFunctionpromptGithubOAuth
(rl: readline.Interface, prior: Record<string, string>)
scripts/setup.ts:313
↓ 1 callersFunctionregisterStarringTools
( worker: Worker, githubAuth: OAuthCapability, github: PacerHandle, )
src/tools.ts:25
↓ 1 callersFunctionreportFailures
(failures: ReadonlyArray<Failure>)
scripts/backfill.ts:124
↓ 1 callersFunctionresolveParent
(rl: readline.Interface, notion: Client, tokenIsPat: boolean)
scripts/setup.ts:294
↓ 1 callersFunctionsleep
(ms: number)
scripts/setup.ts:42
↓ 1 callersFunctionstarRepo
(owner: string, repo: string, opts: GitHubClientOptions)
src/github.ts:223
↓ 1 callersFunctiontitleLink
(text: string, url: string)
src/repo-props.ts:23
↓ 1 callersFunctiontruncate
(s: string)
src/repo-props.ts:89
↓ 1 callersFunctionunstarRepo
(owner: string, repo: string, opts: GitHubClientOptions)
src/github.ts:228
↓ 1 callersMethodupdate
(label: string)
scripts/lib.ts:105
↓ 1 callersFunctionviewPayloads
( databaseId: string, dataSourceId: string, propIds: Record<string, string>, )
src/repos-schema.ts:79
↓ 1 callersFunctionworkerExists
()
scripts/lib.ts:146
Methodconstructor
(private intervalMs: number)
scripts/backfill.ts:56
Functionrequest
(args: any)
tests/upsert.test.ts:20