MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions2,751 in github.com/alibaba/open-code-review

↓ 1 callersFunctioninitOTLPGRPCProviders
initOTLPGRPCProviders sets up OTLP gRPC exporters for traces and metrics.
internal/telemetry/exporter.go:63
↓ 1 callersFunctioninitRepoWithCommit
initRepoWithCommit creates a real git repository with a single commit whose message is `message`, and returns the repo directory and the commit hash.
cmd/opencodereview/background_file_test.go:308
↓ 1 callersMethodinstall
全局安装 ocr CLI,流式回显 npm 日志,按 exit code 返回是否成功。
extensions/vscode/src/extension/services/CliService.ts:67
↓ 1 callersMethodinvalidateEnvironmentCache
()
extensions/vscode/src/extension/services/CliService.ts:15
↓ 1 callersMethodisAvailable
()
extensions/vscode/src/extension/services/CliService.ts:28
↓ 1 callersFunctionisBinaryFile
isBinaryFile reads up to binarySniffWindow bytes from path and reports whether they contain a NUL byte (git's "binary" heuristic).
internal/scan/provider.go:301
↓ 1 callersFunctionisBotComment
(comment, botLogin)
scripts/github-actions/post-review-comments.js:644
↓ 1 callersFunctionisCommentAlreadyPosted
({ github, owner, repo, prNumber, id, log })
scripts/github-actions/post-review-comments.js:991
↓ 1 callersFunctionisForbiddenChar
(r rune)
cmd/opencodereview/background_file.go:118
↓ 1 callersMethodisGitRepo
isGitRepo reports whether p.repoDir is inside a git working tree.
internal/scan/provider.go:159
↓ 1 callersFunctionisNotGitRepoError
(err error, stderr string)
internal/tool/code_search.go:218
↓ 1 callersFunctionlanguageKey
languageKey returns the lowercased file extension (with the leading dot) or "<no-ext>" for extensionless files.
internal/scan/batch.go:96
↓ 1 callersFunctionleftKey
()
cmd/opencodereview/provider_tui_test.go:23
↓ 1 callersFunctionlevel2Headings
(markdown)
scripts/github-actions/check-translation-sync.js:87
↓ 1 callersFunctionlistExistingReviewComments
(github, owner, repo, prNumber, log)
scripts/github-actions/post-review-comments.js:608
↓ 1 callersMethodlistFiles
listFiles returns all source files under repoDir. In a git repo it uses `git ls-files` for full .gitignore semantics (nested + global excludes + negat
internal/scan/provider.go:151
↓ 1 callersMethodlistFilesViaGit
(ctx context.Context)
internal/scan/provider.go:164
↓ 1 callersMethodlistFilesViaWalk
listFilesViaWalk recursively walks p.repoDir collecting regular files. Honors: - the internal ExcludedDirs blocklist (.git, node_modules, vendor, ...)
internal/scan/provider.go:196
↓ 1 callersMethodlistGitFiles
listGitFiles returns tracked and untracked files (respecting .gitignore) via git ls-files. In range/commit mode it uses git ls-tree to list files at t
internal/tool/file_find.go:70
↓ 1 callersMethodlistWalkFiles
listWalkFiles is the non-git fallback for listGitFiles: it walks the repo directory honoring the root .gitignore and the default excluded-dir blocklis
internal/tool/file_find.go:126
↓ 1 callersFunctionloadFromEmbed
(filename string)
internal/llm/embedded_loader.go:43
↓ 1 callersFunctionloadGlobalRule
()
internal/config/rules/system_rules.go:313
↓ 1 callersFunctionloadProjectRule
loadProjectRule reads <repoDir>/.opencodereview/rule.json. Since #287 anchored RepoDir at the git top-level, `ocr review` from a monorepo subdirectory
internal/config/rules/system_rules.go:352
↓ 1 callersFunctionloadReviewResumeState
(repoDir string, opts reviewOptions)
cmd/opencodereview/review_cmd.go:157
↓ 1 callersFunctionloadRuleFile
(path string)
internal/config/rules/system_rules.go:334
↓ 1 callersFunctionload_diffs_by_path
Build {new_path: FileDiff} for the merge-base diff `ocr review` ran on.
examples/gitflic_ci/post_review.py:383
↓ 1 callersFunctionload_review_result
Read the JSON produced by `ocr review --format json` (path '-' = stdin).
examples/gerrit_ci/post_review.py:280
↓ 1 callersFunctionload_review_result
Read the JSON produced by `ocr review --format json` (path '-' = stdin).
examples/gitflic_ci/post_review.py:394
↓ 1 callersMethodlookupDiff
lookupDiff returns the synthetic Diff for a path, used by llmloop.Runner to resolve code_comment line numbers against the scanned file content.
internal/scan/agent.go:267
↓ 1 callersFunctionlookupTool
lookupTool returns the provider for a given tool from the registry, or nil when not registered.
internal/llmloop/loop.go:504
↓ 1 callersFunctionmain
()
scripts/install.js:152
↓ 1 callersFunctionmain
()
scripts/update.js:139
↓ 1 callersFunctionmain
(argv = process.argv.slice(2), env = process.env)
scripts/github-actions/check-translation-sync.js:337
↓ 1 callersFunctionmain
()
scripts/github-actions/post-review-comments.test.js:1291
↓ 1 callersFunctionmain
()
scripts/github-actions/check-translation-sync.test.js:259
↓ 1 callersFunctionmain
(argv=None)
examples/gerrit_ci/post_review.py:348
↓ 1 callersFunctionmain
(argv=None)
examples/gitflic_ci/post_review.py:436
↓ 1 callersFunctionmakeGithub
(opts = {})
scripts/github-actions/post-review-comments.test.js:84
↓ 1 callersFunctionmake_dry_run_poster
Return post(review_input) that prints instead of calling Gerrit.
examples/gerrit_ci/post_review.py:265
↓ 1 callersFunctionmake_dry_run_poster
Return a post(discussion) that prints instead of calling the API.
examples/gitflic_ci/post_review.py:354
↓ 1 callersFunctionmake_poster
Return post(review_input) that POSTs to the Gerrit set-review endpoint. Auth is preemptive basic auth; the parsed (XSSI-stripped) response JSON i
examples/gerrit_ci/post_review.py:214
↓ 1 callersFunctionmake_poster
Return a post(discussion) that POSTs to the GitFlic Discussions API.
examples/gitflic_ci/post_review.py:326
↓ 1 callersMethodmapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:787
↓ 1 callersFunctionmapResponsesFinishReason
mapResponsesFinishReason applies the coarse-grained mapping from decision 8: - completed -> stop - incomplete -> length - failed/cancelled -> error -
internal/llm/responses_client.go:285
↓ 1 callersFunctionmapsEqual
(a, b map[string]string)
internal/llm/resolver_test.go:1046
↓ 1 callersMethodmatchProjectRuleDetail
(pr *ProjectRule, path string, source string)
internal/config/rules/system_rules.go:418
↓ 1 callersFunctionmax
(a, b int)
internal/suggestdiff/diff.go:70
↓ 1 callersMethodmergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:144
↓ 1 callersFunctionmergeModelLists
(...lists: string[][])
extensions/vscode/src/shared/providers.ts:142
↓ 1 callersFunctionml
(a, b)
scripts/github-actions/post-review-comments.test.js:1204
↓ 1 callersFunctionmockCore
()
scripts/github-actions/post-review-comments.test.js:253
↓ 1 callersFunctionmockFs
(resultText, stderrText)
scripts/github-actions/post-review-comments.test.js:38
↓ 1 callersFunctionnewModelTokenizerCache
()
internal/llm/client.go:233
↓ 1 callersMethodnotifyConfig
(config: OcrConfig | null)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:62
↓ 1 callersFunctionnum
(v)
scripts/github-actions/post-review-comments.js:716
↓ 1 callersFunctionofficialAPIKeyEnvSetHintLine
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2392
↓ 1 callersFunctionofficialAPIKeyRequiredError
(p llm.Provider)
cmd/opencodereview/provider_tui.go:907
↓ 1 callersFunctionofficialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:903
↓ 1 callersFunctionold_line_for
Map a new-side line number to the corresponding old-side line. Lines added by the diff have no old counterpart, so they are anchored to the c
examples/gitflic_ci/post_review.py:174
↓ 1 callersFunctiononModeChange
(mode: ReviewMode)
extensions/vscode/src/webview/App.tsx:29
↓ 1 callersMethodonSync
(fn: (s: CommentSyncState[]) => void)
extensions/vscode/src/extension/providers/CommentProvider.ts:36
↓ 1 callersMethodopen
()
internal/session/persist.go:98
↓ 1 callersMethodopen
(focus?: ConfigPanelFocus)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:23
↓ 1 callersMethodopenDiff
在 VSCode 原生 diff 视图中打开某个待审查文件。三种模式各自决定 diff 的左右两侧。
extensions/vscode/src/extension/services/GitService.ts:259
↓ 1 callersMethodopenDiffEditor
(mount: MountableCommentAnchor)
extensions/vscode/src/extension/providers/CommentProvider.ts:238
↓ 1 callersFunctionout
(name, value)
scripts/github-actions/post-review-comments.js:46
↓ 1 callersFunctionparseFrontmatter
(slug: BlogSlug, raw: string)
pages/src/content/blog/index.ts:52
↓ 1 callersFunctionparseModelList
(value: string)
extensions/vscode/src/extension/services/configDraft.ts:15
↓ 1 callersFunctionparsePorcelain
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:19
↓ 1 callersFunctionparseProviderEntry
(raw: Record<string, unknown> | undefined)
extensions/vscode/src/extension/services/configParse.ts:3
↓ 1 callersFunctionparseProviderMap
(raw: Record<string, unknown> | undefined)
extensions/vscode/src/extension/services/configParse.ts:18
↓ 1 callersFunctionparseStatValue
(value: string)
pages/src/components/HighlightsSection.tsx:6
↓ 1 callersFunctionparseToolArgs
parseToolArgs unmarshals a tool call's raw JSON arguments, always returning a non-nil map on success: some OpenAI-compatible gateways send "arguments"
internal/llmloop/loop.go:491
↓ 1 callersFunctionparse_args
(argv)
examples/gerrit_ci/post_review.py:323
↓ 1 callersFunctionparse_args
(argv)
examples/gitflic_ci/post_review.py:409
↓ 1 callersFunctionparse_diff
Split combined unified diff text into per-file FileDiff sections.
examples/gitflic_ci/post_review.py:120
↓ 1 callersFunctionparse_hunks
Parse one file's unified diff text into a list of Hunks. Lines before the first @@ header (diff --git, ---, +++) are ignored.
examples/gitflic_ci/post_review.py:84
↓ 1 callersMethodpathExistsAtRef
(root: string, ref: string, relPath: string)
extensions/vscode/src/extension/services/GitService.ts:382
↓ 1 callersMethodpersistAddedModelName
persistAddedModelName appends a model to the provider's Models list in config and saves to disk. It does not change the active model.
cmd/opencodereview/provider_tui.go:2629
↓ 1 callersMethodpersistCustomModelName
persistCustomModelName appends a single model name to the active provider's Models list (official or custom) and saves the config. It does not change
cmd/opencodereview/provider_tui.go:780
↓ 1 callersFunctionpick
(v: string)
extensions/vscode/src/webview/components/Select.tsx:33
↓ 1 callersFunctionpost
(discussion)
examples/gitflic_ci/post_review.py:335
↓ 1 callersFunctionpostSummary
({ github, owner, repo, prNumber, body, sticky, log })
scripts/github-actions/post-review-comments.js:471
↓ 1 callersMethodprepareReviewFileStatus
审查开始前缓存 commit/branch 模式下的文件状态,供评论挂载查询。
extensions/vscode/src/extension/services/GitService.ts:401
↓ 1 callersMethodpresentPatchDiff
最后兜底:原生 diff 失败时才展示补丁文本。
extensions/vscode/src/extension/services/GitService.ts:363
↓ 1 callersMethodpresentRefDiff
分支/提交模式:用 git ref 或空文件构造两侧,走 VS Code 原生 diff 编辑器。
extensions/vscode/src/extension/services/GitService.ts:311
↓ 1 callersMethodpreview
preview runs the agent's file-selection logic and returns the preview result.
cmd/opencodereview/delegate_cmd.go:131
↓ 1 callersFunctionprintConfigUsage
()
cmd/opencodereview/flags.go:289
↓ 1 callersFunctionprintDelegateUsage
()
cmd/opencodereview/delegate_cmd.go:252
↓ 1 callersFunctionprintLLMUsage
()
cmd/opencodereview/llm_cmd.go:115
↓ 1 callersFunctionprintRulesUsage
()
cmd/opencodereview/rules_cmd.go:81
↓ 1 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:148
↓ 1 callersFunctionprintSessionListUsage
()
cmd/opencodereview/session_cmd.go:276
↓ 1 callersFunctionprintSessionShowUsage
()
cmd/opencodereview/session_cmd.go:290
↓ 1 callersFunctionprintSessionTable
(w io.Writer, summaries []session.Summary)
cmd/opencodereview/session_cmd.go:131
↓ 1 callersFunctionprintSessionUsage
()
cmd/opencodereview/session_cmd.go:265
↓ 1 callersMethodprobeCommand
(bin: string, args: string[])
extensions/vscode/src/extension/services/CliService.ts:33
↓ 1 callersFunctionprobePath
probePath walks through each candidate path in order, returning the first int64 value found along with true. Returns (0, false) if none match.
internal/llm/usage_resolver.go:116
↓ 1 callersMethodproviderNameForModelStep
()
cmd/opencodereview/provider_tui.go:539
↓ 1 callersFunctionpublish
Post the review result via the `post(discussion)` callable. `post` receives a discussion dict and must raise on failure. A general comment ca
examples/gitflic_ci/post_review.py:248
← previousnext →901–1,000 of 2,751, ranked by callers