MCPcopy Create free account

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

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

↓ 1 callersFunctionfindExistingBatchReview
({ github, owner, repo, prNumber, tag, log })
scripts/github-actions/post-review-comments.js:1265
↓ 1 callersFunctionfindExistingSummaryComment
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:822
↓ 1 callersFunctionfirstDiffIndex
(a, b)
scripts/github-actions/check-translation-sync.js:106
↓ 1 callersFunctionflush
()
scripts/github-actions/post-review-comments.js:1869
↓ 1 callersFunctionflush
()
examples/gitflic_ci/post_review.py:126
↓ 1 callersMethodflushAndClose
()
internal/session/persist.go:372
↓ 1 callersFunctionfold_comments
Rebuild a ReviewInput with all inline comments folded into the summary. Used when Gerrit rejects the batch (HTTP 400, e.g. a line outside the
examples/gerrit_ci/post_review.py:153
↓ 1 callersFunctionformatDuration
(seconds float64)
internal/viewer/server.go:284
↓ 1 callersFunctionformatLocateNote
(originalLine: number, resolvedLine: number)
extensions/vscode/src/extension/providers/commentAnchor.ts:192
↓ 1 callersFunctionformatModels
(entry: ProviderEntry)
extensions/vscode/src/webview/components/CustomProviderManager.tsx:13
↓ 1 callersFunctionformatNumber
(n int)
internal/viewer/server.go:239
↓ 1 callersFunctionformatRelative
(date?: Date)
extensions/vscode/src/extension/services/GitService.ts:502
↓ 1 callersFunctionformatReviewResult
(result: RunResult, preview: boolean)
plugins/open-code-review/opencode/open-code-review.ts:237
↓ 1 callersFunctionformatWarningEntry
(w)
scripts/github-actions/post-review-comments.js:1593
↓ 1 callersFunctionformat_comment
Render one inline comment body (same shape as gitflic's format_comment). The Severity/Category header line exists because Gerrit's CommentInput h
examples/gerrit_ci/post_review.py:66
↓ 1 callersFunctionformat_comment
Format a single review comment as markdown for an inline discussion. Uses GitLab's ``suggestion:-0+0`` syntax so the suggestion renders as a
examples/gitlab_ci/post_review.py:46
↓ 1 callersFunctionformat_comment
Render an inline discussion body.
examples/gitflic_ci/post_review.py:218
↓ 1 callersFunctionformat_comment_fallback
Format a comment for fallback (non-inline) display in a note. Uses ``<details><summary>`` HTML so the suggested change is collapsible in the
examples/gitlab_ci/post_review.py:63
↓ 1 callersFunctionformat_comment_fallback
Render a comment for the fallback (non-inline) note.
examples/gitflic_ci/post_review.py:228
↓ 1 callersFunctionformat_summary_comment
Render ocr's JSON review output as a single Markdown summary comment.
examples/codeup_ci/post_review.py:125
↓ 1 callersFunctiongetAllTags
(language: string)
pages/src/content/blog/index.ts:95
↓ 1 callersFunctiongetAuthenticatedLogin
(github, log)
scripts/github-actions/post-review-comments.js:926
↓ 1 callersFunctiongetBlogContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:80
↓ 1 callersFunctiongetDocContent
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:179
↓ 1 callersFunctiongetHeader
(headers, name)
scripts/github-actions/post-review-comments.js:1069
↓ 1 callersFunctiongetInstalledVersion
(binPath)
scripts/update.js:59
↓ 1 callersMethodgetOrLoad
(encName string)
internal/llm/client.go:237
↓ 1 callersFunctiongetPlatformPackageName
()
scripts/platform.js:18
↓ 1 callersFunctiongetPrimaryLabel
()
extensions/vscode/src/webview/views/IdleView.tsx:30
↓ 1 callersMethodgetReviewFileStatus
(path: string)
extensions/vscode/src/extension/services/GitService.ts:413
↓ 1 callersFunctiongetValidSlugs
(language: string)
pages/src/pages/BlogPage.tsx:28
↓ 1 callersMethodgitLs
(ctx context.Context, args ...string)
internal/scan/provider.go:242
↓ 1 callersMethodhandle
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:67
↓ 1 callersMethodhandle
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/SidebarProvider.ts:57
↓ 1 callersMethodhandleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1048
↓ 1 callersMethodhandleDown
()
cmd/opencodereview/provider_tui.go:1769
↓ 1 callersMethodhandleEnter
()
cmd/opencodereview/provider_tui.go:1684
↓ 1 callersMethodhandleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1589
↓ 1 callersMethodhandleMessage
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:76
↓ 1 callersFunctionhandleResize
()
pages/src/components/ColorBends.tsx:212
↓ 1 callersMethodhandleUp
()
cmd/opencodereview/provider_tui.go:1742
↓ 1 callersFunctionhandler
(e: MouseEvent)
pages/src/components/Navbar.tsx:41
↓ 1 callersFunctionhasTraversalPathComponent
(pathspec string)
internal/tool/code_search.go:91
↓ 1 callersMethodhtml
(webview: vscode.Webview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:148
↓ 1 callersMethodhtml
(webview: vscode.Webview)
extensions/vscode/src/extension/providers/SidebarProvider.ts:128
↓ 1 callersFunctionidxOf
(arg: vscode.CommentThread | number)
extensions/vscode/src/extension/commands.ts:16
↓ 1 callersMethodindexOfThread
(thread: vscode.CommentThread)
extensions/vscode/src/extension/providers/CommentProvider.ts:306
↓ 1 callersMethodinferJumpBlockReason
未记录原因时根据评论元数据推断(如 L0 多为行号未解析)。
extensions/vscode/src/extension/providers/CommentProvider.ts:233
↓ 1 callersFunctioninitMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:374
↓ 1 callersFunctioninitOTLPGRPCProviders
initOTLPGRPCProviders sets up OTLP gRPC exporters for traces and metrics.
internal/telemetry/exporter.go:96
↓ 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:68
↓ 1 callersMethodinvalidateEnvironmentCache
()
extensions/vscode/src/extension/services/CliService.ts:15
↓ 1 callersFunctionisASCIILetter
(b byte)
internal/diff/git.go:486
↓ 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:972
↓ 1 callersFunctionisChunkLoadError
(error: Error)
pages/src/components/ErrorBoundary.tsx:17
↓ 1 callersFunctionisCommentAlreadyPosted
({ github, owner, repo, prNumber, id, log })
scripts/github-actions/post-review-comments.js:1319
↓ 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 callersFunctionisLocalRemote
isLocalRemote reports whether a remote URL points at the local filesystem rather than a network host: a file:// URL, a POSIX absolute/relative/home pa
internal/diff/git.go:467
↓ 1 callersFunctionisNotGitRepoError
(err error, stderr string)
internal/tool/code_search.go:218
↓ 1 callersFunctionitemFailureForRunClass
itemFailureForRunClass maps a run-level stop cause onto the item-level classification used when Finalize sweeps the still-undecided selected items. A
internal/session/manifest.go:116
↓ 1 callersFunctionjoinHostPath
joinHostPath assembles the canonical "host[/path]" form, trimming a leading "/" and a trailing ".git"/"/" from the path while preserving its case.
internal/diff/git.go:453
↓ 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 callersFunctionlevenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:60
↓ 1 callersFunctionlistExistingReviewComments
(github, owner, repo, prNumber, log)
scripts/github-actions/post-review-comments.js:936
↓ 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:326
↓ 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:365
↓ 1 callersFunctionloadReviewResumeState
(repoDir string, opts reviewOptions)
cmd/opencodereview/review_cmd.go:268
↓ 1 callersFunctionloadRuleFile
(path string)
internal/config/rules/system_rules.go:347
↓ 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:297
↓ 1 callersFunctionlookupTool
lookupTool returns the provider for a given tool from the registry, or nil when not registered.
internal/llmloop/loop.go:556
↓ 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
← previousnext →1,001–1,100 of 3,271, ranked by callers