Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,271 in github.com/alibaba/open-code-review
⨍
Functions
3,271
◇
Types & classes
309
↓ 1 callers
Function
findExistingBatchReview
({ github, owner, repo, prNumber, tag, log })
scripts/github-actions/post-review-comments.js:1265
↓ 1 callers
Function
findExistingSummaryComment
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:822
↓ 1 callers
Function
firstDiffIndex
(a, b)
scripts/github-actions/check-translation-sync.js:106
↓ 1 callers
Function
flush
()
scripts/github-actions/post-review-comments.js:1869
↓ 1 callers
Function
flush
()
examples/gitflic_ci/post_review.py:126
↓ 1 callers
Method
flushAndClose
()
internal/session/persist.go:372
↓ 1 callers
Function
fold_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 callers
Function
formatDuration
(seconds float64)
internal/viewer/server.go:284
↓ 1 callers
Function
formatLocateNote
(originalLine: number, resolvedLine: number)
extensions/vscode/src/extension/providers/commentAnchor.ts:192
↓ 1 callers
Function
formatModels
(entry: ProviderEntry)
extensions/vscode/src/webview/components/CustomProviderManager.tsx:13
↓ 1 callers
Function
formatNumber
(n int)
internal/viewer/server.go:239
↓ 1 callers
Function
formatRelative
(date?: Date)
extensions/vscode/src/extension/services/GitService.ts:502
↓ 1 callers
Function
formatReviewResult
(result: RunResult, preview: boolean)
plugins/open-code-review/opencode/open-code-review.ts:237
↓ 1 callers
Function
formatWarningEntry
(w)
scripts/github-actions/post-review-comments.js:1593
↓ 1 callers
Function
format_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 callers
Function
format_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 callers
Function
format_comment
Render an inline discussion body.
examples/gitflic_ci/post_review.py:218
↓ 1 callers
Function
format_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 callers
Function
format_comment_fallback
Render a comment for the fallback (non-inline) note.
examples/gitflic_ci/post_review.py:228
↓ 1 callers
Function
format_summary_comment
Render ocr's JSON review output as a single Markdown summary comment.
examples/codeup_ci/post_review.py:125
↓ 1 callers
Function
getAllTags
(language: string)
pages/src/content/blog/index.ts:95
↓ 1 callers
Function
getAuthenticatedLogin
(github, log)
scripts/github-actions/post-review-comments.js:926
↓ 1 callers
Function
getBlogContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:80
↓ 1 callers
Function
getDocContent
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:179
↓ 1 callers
Function
getHeader
(headers, name)
scripts/github-actions/post-review-comments.js:1069
↓ 1 callers
Function
getInstalledVersion
(binPath)
scripts/update.js:59
↓ 1 callers
Method
getOrLoad
(encName string)
internal/llm/client.go:237
↓ 1 callers
Function
getPlatformPackageName
()
scripts/platform.js:18
↓ 1 callers
Function
getPrimaryLabel
()
extensions/vscode/src/webview/views/IdleView.tsx:30
↓ 1 callers
Method
getReviewFileStatus
(path: string)
extensions/vscode/src/extension/services/GitService.ts:413
↓ 1 callers
Function
getValidSlugs
(language: string)
pages/src/pages/BlogPage.tsx:28
↓ 1 callers
Method
gitLs
(ctx context.Context, args ...string)
internal/scan/provider.go:242
↓ 1 callers
Method
handle
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:67
↓ 1 callers
Method
handle
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/SidebarProvider.ts:57
↓ 1 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1048
↓ 1 callers
Method
handleDown
()
cmd/opencodereview/provider_tui.go:1769
↓ 1 callers
Method
handleEnter
()
cmd/opencodereview/provider_tui.go:1684
↓ 1 callers
Method
handleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1589
↓ 1 callers
Method
handleMessage
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:76
↓ 1 callers
Function
handleResize
()
pages/src/components/ColorBends.tsx:212
↓ 1 callers
Method
handleUp
()
cmd/opencodereview/provider_tui.go:1742
↓ 1 callers
Function
handler
(e: MouseEvent)
pages/src/components/Navbar.tsx:41
↓ 1 callers
Function
hasTraversalPathComponent
(pathspec string)
internal/tool/code_search.go:91
↓ 1 callers
Method
html
(webview: vscode.Webview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:148
↓ 1 callers
Method
html
(webview: vscode.Webview)
extensions/vscode/src/extension/providers/SidebarProvider.ts:128
↓ 1 callers
Function
idxOf
(arg: vscode.CommentThread | number)
extensions/vscode/src/extension/commands.ts:16
↓ 1 callers
Method
indexOfThread
(thread: vscode.CommentThread)
extensions/vscode/src/extension/providers/CommentProvider.ts:306
↓ 1 callers
Method
inferJumpBlockReason
未记录原因时根据评论元数据推断(如 L0 多为行号未解析)。
extensions/vscode/src/extension/providers/CommentProvider.ts:233
↓ 1 callers
Function
initMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:374
↓ 1 callers
Function
initOTLPGRPCProviders
initOTLPGRPCProviders sets up OTLP gRPC exporters for traces and metrics.
internal/telemetry/exporter.go:96
↓ 1 callers
Function
initRepoWithCommit
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 callers
Method
install
全局安装 ocr CLI,流式回显 npm 日志,按 exit code 返回是否成功。
extensions/vscode/src/extension/services/CliService.ts:68
↓ 1 callers
Method
invalidateEnvironmentCache
()
extensions/vscode/src/extension/services/CliService.ts:15
↓ 1 callers
Function
isASCIILetter
(b byte)
internal/diff/git.go:486
↓ 1 callers
Method
isAvailable
()
extensions/vscode/src/extension/services/CliService.ts:28
↓ 1 callers
Function
isBinaryFile
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 callers
Function
isBotComment
(comment, botLogin)
scripts/github-actions/post-review-comments.js:972
↓ 1 callers
Function
isChunkLoadError
(error: Error)
pages/src/components/ErrorBoundary.tsx:17
↓ 1 callers
Function
isCommentAlreadyPosted
({ github, owner, repo, prNumber, id, log })
scripts/github-actions/post-review-comments.js:1319
↓ 1 callers
Function
isForbiddenChar
(r rune)
cmd/opencodereview/background_file.go:118
↓ 1 callers
Method
isGitRepo
isGitRepo reports whether p.repoDir is inside a git working tree.
internal/scan/provider.go:159
↓ 1 callers
Function
isLocalRemote
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 callers
Function
isNotGitRepoError
(err error, stderr string)
internal/tool/code_search.go:218
↓ 1 callers
Function
itemFailureForRunClass
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 callers
Function
joinHostPath
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 callers
Function
languageKey
languageKey returns the lowercased file extension (with the leading dot) or "<no-ext>" for extensionless files.
internal/scan/batch.go:96
↓ 1 callers
Function
leftKey
()
cmd/opencodereview/provider_tui_test.go:23
↓ 1 callers
Function
level2Headings
(markdown)
scripts/github-actions/check-translation-sync.js:87
↓ 1 callers
Function
levenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:60
↓ 1 callers
Function
listExistingReviewComments
(github, owner, repo, prNumber, log)
scripts/github-actions/post-review-comments.js:936
↓ 1 callers
Method
listFilesViaGit
(ctx context.Context)
internal/scan/provider.go:164
↓ 1 callers
Method
listFilesViaWalk
listFilesViaWalk recursively walks p.repoDir collecting regular files. Honors: - the internal ExcludedDirs blocklist (.git, node_modules, vendor, ...)
internal/scan/provider.go:196
↓ 1 callers
Method
listGitFiles
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 callers
Method
listWalkFiles
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 callers
Function
loadFromEmbed
(filename string)
internal/llm/embedded_loader.go:43
↓ 1 callers
Function
loadGlobalRule
()
internal/config/rules/system_rules.go:326
↓ 1 callers
Function
loadMermaid
()
pages/src/components/MarkdownRenderer.tsx:14
↓ 1 callers
Function
loadPlugin
(worktree)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:8
↓ 1 callers
Function
loadProjectRule
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 callers
Function
loadReviewResumeState
(repoDir string, opts reviewOptions)
cmd/opencodereview/review_cmd.go:268
↓ 1 callers
Function
loadRuleFile
(path string)
internal/config/rules/system_rules.go:347
↓ 1 callers
Function
load_diffs_by_path
Build {new_path: FileDiff} for the merge-base diff `ocr review` ran on.
examples/gitflic_ci/post_review.py:383
↓ 1 callers
Function
load_review_result
Read the JSON produced by `ocr review --format json` (path '-' = stdin).
examples/gerrit_ci/post_review.py:280
↓ 1 callers
Function
load_review_result
Read the JSON produced by ``ocr review --format json``.
examples/gitlab_ci/post_review.py:434
↓ 1 callers
Function
load_review_result
Read the JSON produced by `ocr review --format json` (path '-' = stdin).
examples/gitflic_ci/post_review.py:394
↓ 1 callers
Method
lookupDiff
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 callers
Function
lookupTool
lookupTool returns the provider for a given tool from the registry, or nil when not registered.
internal/llmloop/loop.go:556
↓ 1 callers
Function
main
()
scripts/install.js:152
↓ 1 callers
Function
main
()
scripts/update.js:139
↓ 1 callers
Function
main
(argv = process.argv.slice(2), env = process.env)
scripts/github-actions/check-translation-sync.js:337
↓ 1 callers
Function
main
()
scripts/github-actions/post-review-comments.test.js:2114
↓ 1 callers
Function
main
()
scripts/github-actions/check-translation-sync.test.js:271
↓ 1 callers
Function
main
(argv=None)
examples/gerrit_ci/post_review.py:348
↓ 1 callers
Function
main
(argv=None)
examples/gitlab_ci/post_review.py:453
↓ 1 callers
Function
main
(argv=None)
examples/codeup_ci/post_review.py:260
↓ 1 callers
Function
main
(argv=None)
examples/gitflic_ci/post_review.py:436
↓ 1 callers
Function
make_dry_run_poster
Return post(review_input) that prints instead of calling Gerrit.
examples/gerrit_ci/post_review.py:265
↓ 1 callers
Function
make_dry_run_poster
Return a ``post(discussion)`` callable that prints instead of posting.
examples/gitlab_ci/post_review.py:391
↓ 1 callers
Function
make_dry_run_poster
Return a post(discussion) that prints instead of calling the API.
examples/gitflic_ci/post_review.py:354
↓ 1 callers
Function
make_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
← previous
next →
1,001–1,100 of 3,271, ranked by callers