MCPcopy Create free account

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

Functions3,095 in github.com/alibaba/open-code-review

↓ 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 callersFunctionloadMermaid
()
pages/src/components/MarkdownRenderer.tsx:14
↓ 1 callersFunctionloadPlugin
(worktree)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:8
↓ 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:232
↓ 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``.
examples/gitlab_ci/post_review.py:434
↓ 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:275
↓ 1 callersFunctionlookupTool
lookupTool returns the provider for a given tool from the registry, or nil when not registered.
internal/llmloop/loop.go:525
↓ 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:2114
↓ 1 callersFunctionmain
()
scripts/github-actions/check-translation-sync.test.js:271
↓ 1 callersFunctionmain
(argv=None)
examples/gerrit_ci/post_review.py:348
↓ 1 callersFunctionmain
(argv=None)
examples/gitlab_ci/post_review.py:453
↓ 1 callersFunctionmain
(argv=None)
examples/codeup_ci/post_review.py:260
↓ 1 callersFunctionmain
(argv=None)
examples/gitflic_ci/post_review.py:436
↓ 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)`` callable that prints instead of posting.
examples/gitlab_ci/post_review.py:391
↓ 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)`` callable that POSTs to the GitLab API. Discussions with a ``position`` key are posted as inline comments via ``
examples/gitlab_ci/post_review.py:336
↓ 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:803
↓ 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 callersMethodmarkChunkReloadAttempt
()
pages/src/components/ErrorBoundary.tsx:39
↓ 1 callersFunctionmatchGitignorePattern
matchGitignorePattern checks if relPath matches a single .gitignore pattern. Polarity is not this function's concern: a negated pattern reports false
internal/diff/git.go:234
↓ 1 callersMethodmatchProjectRuleDetail
(pr *ProjectRule, path string, source string)
internal/config/rules/system_rules.go:418
↓ 1 callersMethodmergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:131
↓ 1 callersFunctionmergeModelLists
(...lists: string[][])
extensions/vscode/src/shared/providers.ts:142
↓ 1 callersFunctionml
(a, b)
scripts/github-actions/post-review-comments.test.js:1303
↓ 1 callersFunctionmockCore
()
scripts/github-actions/post-review-comments.test.js:347
↓ 1 callersFunctionmockReload
()
pages/src/components/ErrorBoundary.test.tsx:9
↓ 1 callersFunctionnewModelTokenizerCache
()
internal/llm/client.go:233
↓ 1 callersFunctionnormalizeCodeCommentCategory
(category string)
internal/tool/code_comment.go:125
↓ 1 callersFunctionnormalizeCodeCommentSeverity
(severity string)
internal/tool/code_comment.go:133
↓ 1 callersMethodnotifyConfig
(config: OcrConfig | null)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:62
↓ 1 callersFunctionnum
(v)
scripts/github-actions/post-review-comments.js:1044
↓ 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:260
↓ 1 callersMethodopenDiffEditor
(mount: MountableCommentAnchor)
extensions/vscode/src/extension/providers/CommentProvider.ts:238
↓ 1 callersFunctionoptionalPositiveInt
(description: string)
plugins/open-code-review/opencode/open-code-review.ts:252
↓ 1 callersFunctionoptionalString
(description: string)
plugins/open-code-review/opencode/open-code-review.ts:249
↓ 1 callersFunctionout
(name, value)
scripts/github-actions/post-review-comments.js:89
↓ 1 callersFunctionparseDiffHunkRanges
(patch)
scripts/github-actions/post-review-comments.js:1903
↓ 1 callersFunctionparseFrontmatter
(slug: BlogSlug, raw: string)
pages/src/content/blog/index.ts:52
↓ 1 callersFunctionparseMCPHeaders
parseMCPHeaders parses a JSON object of header key-value pairs. Example: {"Authorization": "Bearer $TOKEN", "X-Custom": "value"}
cmd/opencodereview/config_cmd.go:725
↓ 1 callersFunctionparseModelList
(value: string)
extensions/vscode/src/extension/services/configDraft.ts:15
↓ 1 callersFunctionparsePorcelain
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:20
↓ 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:512
↓ 1 callersFunctionparse_args
(argv)
examples/gerrit_ci/post_review.py:323
↓ 1 callersFunctionparse_args
(argv)
examples/gitlab_ci/post_review.py:440
↓ 1 callersFunctionparse_args
(argv=None)
examples/codeup_ci/post_review.py:230
↓ 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:383
↓ 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:799
↓ 1 callersFunctionpost_global_comment
POST a GLOBAL_COMMENT to a CodeUp change request. Returns (status, body).
examples/codeup_ci/post_review.py:168
↓ 1 callersMethodprepareReviewFileStatus
审查开始前缓存 commit/branch 模式下的文件状态,供评论挂载查询。
extensions/vscode/src/extension/services/GitService.ts:402
↓ 1 callersMethodpresentPatchDiff
最后兜底:原生 diff 失败时才展示补丁文本。
extensions/vscode/src/extension/services/GitService.ts:364
↓ 1 callersMethodpresentRefDiff
分支/提交模式:用 git ref 或空文件构造两侧,走 VS Code 原生 diff 编辑器。
extensions/vscode/src/extension/services/GitService.ts:312
↓ 1 callersMethodpreview
preview runs the agent's file-selection logic and returns the preview result.
cmd/opencodereview/delegate_cmd.go:118
↓ 1 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:140
↓ 1 callersFunctionprintSessionTable
(w io.Writer, summaries []session.Summary)
cmd/opencodereview/session_cmd.go:123
↓ 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 injectable ``post(discussion)`` callable. ``diff_refs`` is a dict with ``base_sha``/``start_sha``/``head_sha``
examples/gitlab_ci/post_review.py:95
↓ 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
↓ 1 callersFunctionpublishBatch
({ chunk, github, owner, repo, prNumber, commitSha, reviewBody, REVIEW_TAG, log, diffCache
scripts/github-actions/post-review-comments.js:365
↓ 1 callersMethodpushConfig
(config: ReturnType<ConfigService['read']>)
extensions/vscode/src/extension/providers/SidebarProvider.ts:32
↓ 1 callersFunctionpushValue
(args: string[], flag: string, value: string | number | undefined)
plugins/open-code-review/opencode/open-code-review.ts:57
↓ 1 callersMethodreadFileAtRef
(ref: string, relPath: string)
extensions/vscode/src/extension/services/GitService.ts:417
↓ 1 callersMethodreadFromDisk
(path string)
internal/tool/filereader.go:79
↓ 1 callersMethodreadFromGitShow
(parentCtx context.Context, path string)
internal/tool/filereader.go:115
↓ 1 callersMethodreadLinesFromDisk
(path string, startLine, maxLines int)
internal/tool/filereader.go:190
← previousnext →1,001–1,100 of 3,095, ranked by callers