MCPcopy Create free account

hub / github.com/Martian-Engineering/pr-sheriff / functions

Functions153 in github.com/Martian-Engineering/pr-sheriff

↓ 25 callersFunctionyamlQuote
* @param {string} s * @returns {string}
scripts/qmd-corpus-index.js:190
↓ 18 callersFunctionyamlScalar
* @param {any} v * @returns {string}
scripts/qmd-corpus-index.js:198
↓ 10 callersFunctionaddNode
(graph, node)
src/graph/reference_graph_builder.mjs:11
↓ 9 callersFunctionassertString
(v, path)
src/llm/judge_schema.mjs:159
↓ 8 callersFunctionenv
(name: string)
src/config/loadConfig.ts:17
↓ 8 callersFunctionreadFixture
(name)
test/github_fetch.test.mjs:12
↓ 8 callersFunctionusageAndExit
(code)
scripts/qmd-corpus-index.js:108
↓ 7 callersFunctionprNodeId
({ owner, repo, number })
src/graph/reference_graph_builder.mjs:3
↓ 6 callersFunctionaddEdge
(graph, edge)
src/graph/reference_graph_builder.mjs:15
↓ 6 callersFunctionghApi
* Call `gh api` with optional headers and pagination, returning parsed JSON. * * Note: `gh api --paginate` returns a single JSON array for array end
scripts/pr-supersession-single.js:76
↓ 6 callersFunctionparseArgs
* @param {string[]} argv * @returns {Args}
scripts/qmd-corpus-index.js:34
↓ 6 callersFunctiontruncate
(str, max = 2000)
scripts/pr-supersession-single.js:102
↓ 5 callersMethodgetPR
* Fetch pull request details.
src/github/github_fetch.mjs:109
↓ 5 callersFunctionissueNodeId
({ owner, repo, number })
src/graph/reference_graph_builder.mjs:7
↓ 5 callersFunctionuniqNumbers
(nums: number[])
src/commands/subcommands/analyzePr.ts:40
↓ 5 callersFunctionuniquePush
(arr, value)
src/graph/reference_graph_builder.mjs:19
↓ 5 callersFunctionvalidateJudgeResult
(value)
src/llm/judge_schema.mjs:232
↓ 4 callersFunctionassertNoExtraKeys
(obj, allowedKeys, path)
src/llm/judge_schema.mjs:151
↓ 4 callersFunctioncacheKey
(parts)
src/github/file_cache.mjs:14
↓ 4 callersFunctionghListAll
* Manual pagination so we can stop early when `--since` is used. * * @param {(page: number) => string} endpointForPage * @param {(items: any[]) =>
scripts/qmd-corpus-index.js:153
↓ 4 callersFunctionisObject
(v)
src/llm/judge_schema.mjs:147
↓ 4 callersFunctionmakeStubRunner
(stdoutResponses)
test/github_fetch.test.mjs:16
↓ 4 callersFunctionmakeValid
()
test/judge_schema.test.mjs:6
↓ 4 callersFunctionnormalizeBody
* @param {string} s * @returns {string}
scripts/qmd-corpus-index.js:251
↓ 4 callersFunctionprintJson
(value: unknown)
src/output/printJson.ts:6
↓ 4 callersFunctionreadJsonCache
({ cacheDir, key, ttlSeconds, nowMs = Date.now() })
src/github/file_cache.mjs:30
↓ 4 callersFunctionwriteJsonCache
({ cacheDir, key, value })
src/github/file_cache.mjs:45
↓ 4 callersFunctionyamlStringList
* @param {string[]} items * @param {number} indent * @returns {string}
scripts/qmd-corpus-index.js:210
↓ 3 callersMethod#restRequestRaw
({ method, endpoint })
src/github/github_fetch.mjs:347
↓ 3 callersFunctionadd
(nRaw: string | undefined)
src/commands/subcommands/analyzePr.ts:53
↓ 3 callersFunctionassertOptionalString
(v, path)
src/llm/judge_schema.mjs:163
↓ 3 callersFunctionencodeQuery
(params)
src/github/github_fetch.mjs:14
↓ 3 callersFunctionextractReferencedNumbers
(text, { owner, repo })
src/graph/reference_extraction.mjs:16
↓ 3 callersFunctiongetComments
(prNumber)
scripts/pr-supersession-single.js:216
↓ 3 callersMethodgetIssue
* Fetch issue details.
src/github/github_fetch.mjs:120
↓ 3 callersFunctionghApiJson
* @param {string} endpoint * @param {string[]} extraArgs * @returns {any}
scripts/qmd-corpus-index.js:138
↓ 3 callersFunctionghq
(endpoint)
scripts/pr-supersession-detector-simple.js:13
↓ 3 callersMethodlistPRComments
* List all comments on a PR: issue comments + PR review (inline) comments. * * @returns {Promise<{issueComments:any[], reviewComments:any[], all
src/github/github_fetch.mjs:133
↓ 3 callersFunctionparseJsonFromModelText
(text)
src/llm/judge_parse.mjs:37
↓ 3 callersFunctionretrieveCandidates
(opts: { summary: string; n: number; config: Pick<AppConfig, "qmdCollection" | "qmdIndex">; qmdRunner?
src/candidates/retrieveCandidates.ts:81
↓ 3 callersFunctionstripFirstCodeFence
(text)
src/llm/judge_parse.mjs:21
↓ 3 callersFunctiontruncate
(str, max = 3000)
scripts/pr-supersession-detector-llm.js:35
↓ 2 callersMethod#executeWithBackoff
(args, parseFn)
src/github/github_fetch.mjs:411
↓ 2 callersMethod#restPaginateArray
({ endpoint, params = {}, useCache })
src/github/github_fetch.mjs:265
↓ 2 callersMethod#restRequest
({ method, endpoint, params = undefined, useCache })
src/github/github_fetch.mjs:330
↓ 2 callersFunctionaddIssueTimelineEdges
(issueNum, { maxPrs, edgeKindFor })
src/graph/reference_graph_builder.mjs:120
↓ 2 callersFunctionassertIntegerMin1
(v, path)
src/llm/judge_schema.mjs:174
↓ 2 callersFunctionassertNumber01
(v, path)
src/llm/judge_schema.mjs:168
↓ 2 callersFunctionbounds
* @param {any[]} events * @param {string} createdAtKey * @returns {{firstAt: string|null, lastAt: string|null}}
scripts/qmd-corpus-index.js:262
↓ 2 callersFunctionbuildReferenceGraph
({ gh, owner, repo, prNumber, budgets = {}, })
src/graph/reference_graph_builder.mjs:51
↓ 2 callersFunctioncachePath
(cacheDir, key)
src/github/file_cache.mjs:23
↓ 2 callersFunctioncorpusPath
* @param {string} owner * @param {string} repoName * @param {"pull"|"issue"} type * @param {number} number * @returns {string}
scripts/qmd-corpus-index.js:223
↓ 2 callersFunctionextractIssueNumbersFromPRAndComments
(pr, comments)
scripts/pr-supersession-single.js:159
↓ 2 callersFunctionextractIssueNumbersFromText
* Extract `#123`, PR URLs, and issue URLs from text. * * Notes: * - We keep the extraction intentionally permissive (false positives are OK). * -
src/commands/subcommands/analyzePr.ts:51
↓ 2 callersFunctionextractIssues
(body)
scripts/pr-supersession-detector.js:30
↓ 2 callersFunctionextractReferencedNumbersFromPRAndComments
(pr, comments, repo)
src/graph/reference_extraction.mjs:54
↓ 2 callersFunctionfetchIssueComments
* @param {string} repo * @param {number} number * @param {number} max * @returns {any[]}
scripts/qmd-corpus-index.js:442
↓ 2 callersFunctionfetchPRWithComments
(num)
src/graph/reference_graph_builder.mjs:89
↓ 2 callersFunctiongetClosingPRNumbersForIssue
* Resolve a repo issue number to the PR(s) that closed it, via the issue timeline. * * Implementation detail: * - We look for "closed" timeline eve
scripts/pr-supersession-single.js:263
↓ 2 callersFunctiongetComments
(prNumber)
scripts/pr-supersession-detector-llm.js:41
↓ 2 callersFunctiongetCommentsCached
(prNumber)
scripts/pr-supersession-single.js:249
↓ 2 callersMethodgetIssueTimeline
* Fetch issue timeline events, including cross-references and "closed by" data. * * This uses GraphQL because REST issue timeline is still awkwa
src/github/github_fetch.mjs:158
↓ 2 callersFunctiongetNumberKind
(num)
src/graph/reference_graph_builder.mjs:80
↓ 2 callersFunctiongetPRCached
(prNumber)
scripts/pr-supersession-single.js:242
↓ 2 callersFunctiongetRootHelp
()
src/cli/help.ts:3
↓ 2 callersFunctiongh
(query)
scripts/pr-supersession-single.js:57
↓ 2 callersFunctionisIssueNotPR
* Determine whether `issueNumber` is an Issue (not a PR) in this repo. * * GitHub models PRs as issues; the REST issue payload includes a `pull_requ
scripts/pr-supersession-single.js:143
↓ 2 callersFunctionisoDate
(date)
src/github/github_fetch.mjs:63
↓ 2 callersFunctionjoinCorpus
* @param {string} root * @param {string} rel * @returns {string}
scripts/qmd-corpus-index.js:232
↓ 2 callersFunctionmakeStubRunner
(responses)
test/candidates_retrieval.test.mjs:6
↓ 2 callersFunctionparseLinkHeader
(linkHeader)
src/github/github_fetch.mjs:49
↓ 2 callersFunctionparseScalar
(v: string)
src/candidates/parseFrontmatter.ts:16
↓ 2 callersFunctionpushChunk
(chunks, chunk)
src/github/gh_api_runner.mjs:36
↓ 2 callersFunctionredactConfig
(config: AppConfig)
src/config/redactConfig.ts:6
↓ 2 callersFunctionrenderCommentsForPrompt
(comments, { indent = '', maxComments = 3 } = {})
scripts/pr-supersession-single.js:175
↓ 2 callersFunctionsearch
(query)
scripts/pr-supersession-detector-llm.js:30
↓ 2 callersFunctionsearch
(query)
scripts/pr-supersession-detector.js:26
↓ 2 callersFunctionsplitHttpResponse
(raw)
src/github/github_fetch.mjs:24
↓ 2 callersFunctionvalidatePrLink
(item, path, opts)
src/llm/judge_schema.mjs:195
↓ 2 callersFunctionwriteFileEnsuringDir
* @param {string} absPath * @param {string} content * @param {boolean} dryRun
scripts/qmd-corpus-index.js:241
↓ 1 callersMethod#graphqlPaginateNodes
({ query, variables, extract, useCache })
src/github/github_fetch.mjs:356
↓ 1 callersMethod#restPaginateSearch
({ endpoint, params = {}, useCache })
src/github/github_fetch.mjs:295
↓ 1 callersFunctionanalyze
()
scripts/pr-supersession-single.js:446
↓ 1 callersFunctionanalyzePR
(openPR, mergedPRs)
scripts/pr-supersession-detector-llm.js:84
↓ 1 callersFunctionanalyzePr
(argv: string[], _ctx: CommandContext)
src/commands/subcommands/analyzePr.ts:147
↓ 1 callersFunctionassertStringArray
(v, path)
src/llm/judge_schema.mjs:178
↓ 1 callersFunctionbatch
(argv: string[], _ctx: CommandContext)
src/commands/subcommands/batch.ts:4
↓ 1 callersFunctionbuildIssueTraceContext
(targetPR, targetComments)
scripts/pr-supersession-single.js:327
↓ 1 callersFunctionbuildJudgeSystemPrompt
()
src/llm/anthropic_judge.mjs:11
↓ 1 callersFunctionbuildJudgeUserPrompt
(opts)
src/llm/anthropic_judge.mjs:29
↓ 1 callersFunctioncallLLM
(prompt)
scripts/pr-supersession-detector-llm.js:61
↓ 1 callersFunctioncallLLM
(prompt)
scripts/pr-supersession-single.js:184
↓ 1 callersFunctioncandidates
(argv: string[], ctx: CommandContext)
src/commands/subcommands/candidates.ts:6
↓ 1 callersFunctioncopyGithubMjs
()
scripts/copy-dist-assets.mjs:8
↓ 1 callersFunctionendpointForPage
(page)
scripts/qmd-corpus-index.js:444
↓ 1 callersFunctionensureDir
(dirPath)
src/github/file_cache.mjs:19
↓ 1 callersFunctionextractGlobalOptions
(argv: string[])
src/cli/extractGlobalOptions.ts:5
↓ 1 callersFunctionextractIssueNumbers
* Extract issue references for the configured `REPO` from an arbitrary text blob. * * Examples matched: * - "#123" * - "owner/repo#123" (only if i
scripts/pr-supersession-single.js:114
↓ 1 callersFunctionfetchPullReviews
* @param {string} repo * @param {number} number * @param {number} max * @returns {any[]}
scripts/qmd-corpus-index.js:455
↓ 1 callersFunctionfileExists
(p: string)
src/config/paths.ts:5
next →1–100 of 153, ranked by callers