MCPcopy Create free account

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

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

↓ 1 callersMethoddeleteCustomProvider
(name: string)
extensions/vscode/src/extension/services/ConfigService.ts:59
↓ 1 callersFunctionderive_base_url
Derive the Gerrit base URL from a change URL. Modern URLs ({base}/c/{project}/+/{number}) split at "/c/", which keeps any context path; legac
examples/gerrit_ci/post_review.py:197
↓ 1 callersFunctiondescribeHeading
(h)
scripts/github-actions/check-translation-sync.js:115
↓ 1 callersFunctiondetectBrowserLanguage
()
pages/src/i18n/context.tsx:25
↓ 1 callersFunctiondetectGitBranch
detectGitBranch returns the current git branch name for the given repo, or empty string on failure.
internal/agent/util.go:106
↓ 1 callersFunctiondetectInitialTab
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:21
↓ 1 callersFunctiondetectPlatform
()
scripts/install.js:31
↓ 1 callersMethoddispatchBatch
dispatchBatch fans out the files of a single batch concurrently and blocks until they all finish (or ctx is cancelled). Returns the number of files di
internal/scan/agent.go:576
↓ 1 callersFunctiondownloadBinary
(url, destPath)
scripts/install.js:128
↓ 1 callersFunctiondownloadText
(url)
scripts/install.js:118
↓ 1 callersFunctionemptyManifest
emptyManifest is the well-formed, empty skipped manifest returned alongside an error from a nil-builder Finalize, so a mistaken nil receiver never pan
internal/session/manifest.go:826
↓ 1 callersMethodemptySideUri
空侧占位(等同 /dev/null),用于新增/删除文件的单侧 diff。
extensions/vscode/src/extension/services/GitService.ts:348
↓ 1 callersFunctionensureResponsesEndpoint
ensureResponsesEndpoint normalizes cfg.URL to end with /responses. The trailing /responses is kept on cfg.URL (so tests and logs see the full endpoint
internal/llm/responses_client.go:70
↓ 1 callersFunctionensureSummaryAnchor
({ github, owner, repo, prNumber, body, sticky, tag, log })
scripts/github-actions/post-review-comments.js:868
↓ 1 callersFunctionensure_summary_anchor
Phase 1: find-or-create the summary note before posting discussions. Runs in both sticky and non-sticky modes so the pre-review body ("⏳ Post
examples/gitlab_ci/post_review.py:1119
↓ 1 callersFunctionenvToCliStatus
(env: EnvCheckResult)
extensions/vscode/src/webview/configStore.ts:48
↓ 1 callersFunctionequalStringSlices
(a, b []string)
internal/session/resume.go:255
↓ 1 callersFunctionerror
(msg)
scripts/install.js:27
↓ 1 callersFunctionesc
(s)
internal/viewer/static/session.js:6
↓ 1 callersFunctionescapeAttr
(s: string)
pages/src/components/MarkdownRenderer.tsx:76
↓ 1 callersFunctionexactNTokens
exactNTokens builds a string that llm.CountTokens reports as exactly n tokens, failing loudly if the tokenizer disagrees so fixture drift cannot silen
internal/scan/agent_test.go:261
↓ 1 callersFunctionexactNTokens
exactNTokens builds a string that llm.CountTokens reports as exactly n tokens, failing loudly if the tokenizer disagrees so fixture drift cannot silen
internal/agent/agent_test.go:518
↓ 1 callersFunctionexecGit
(args: string[])
extensions/vscode/src/extension/services/__tests__/gitMap.test.ts:230
↓ 1 callersFunctionexecuteScan
(opts scanOptions)
cmd/opencodereview/scan_cmd.go:108
↓ 1 callersFunctionfailForOutputLimit
(error: Error)
plugins/open-code-review/opencode/open-code-review.ts:178
↓ 1 callersFunctionfallback
(_e: Error, reset: () => void)
pages/src/components/ErrorBoundary.test.tsx:61
↓ 1 callersFunctionfallbackCopy
(text: string)
pages/src/components/HeroSection.tsx:138
↓ 1 callersFunctionfallbackCopy
(value: string)
pages/src/hooks/useCopyToast.ts:10
↓ 1 callersFunctionfetchLatestVersion
(pkg)
scripts/update.js:76
↓ 1 callersFunctionfetch_diff_refs
Fetch MR diff refs from the ``/versions`` endpoint (or None on failure). When ``expected_shas`` is provided (e.g. ``{"head": ..., "base": ...}``,
examples/gitlab_ci/post_review.py:725
↓ 1 callersFunctionfilterComments
filterComments keeps comments whose severity and category are in the given comma-separated, case-insensitive filter lists. Empty filters keep everythi
cmd/opencodereview/session_cmd.go:208
↓ 1 callersMethodfilterDiffs
filterDiffs removes diffs whose file paths are excluded.
internal/diff/git.go:358
↓ 1 callersFunctionfinalizeDiff
finalizeDiff reads the new file content. When ref is non-empty it uses git show to read the file at that ref; otherwise it reads from disk.
internal/diff/parser.go:120
↓ 1 callersFunctionfinalizeResolvedEndpoint
(source string, ep ResolvedEndpoint)
internal/llm/resolver.go:124
↓ 1 callersFunctionfinalizeSummary
({ github, owner, repo, prNumber, anchor, body, sticky, tag, log })
scripts/github-actions/post-review-comments.js:892
↓ 1 callersFunctionfinalize_summary
Phase 2: write the final summary body to the anchored note (or upsert).
examples/gitlab_ci/post_review.py:1141
↓ 1 callersMethodfindDiff
findDiff returns the Diff for the given file path, or nil if not found.
internal/agent/agent.go:1630
↓ 1 callersMethodfindEditorForUri
( uri: vscode.Uri, side?: MountableCommentAnchor['side'], )
extensions/vscode/src/extension/providers/CommentProvider.ts:274
↓ 1 callersFunctionfindExistingBatchReview
({ github, owner, repo, prNumber, tag, log })
scripts/github-actions/post-review-comments.js:1268
↓ 1 callersFunctionfindExistingSummaryComment
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:825
↓ 1 callersFunctionfirstDiffIndex
(a, b)
scripts/github-actions/check-translation-sync.js:109
↓ 1 callersFunctionflagErrorWithSuggestion
flagErrorWithSuggestion is a SetFlagErrorFunc handler that appends a "Did you mean?" suggestion when the user misspells a flag.
cmd/opencodereview/flag_suggest.go:16
↓ 1 callersFunctionflush
()
scripts/github-actions/post-review-comments.js:1872
↓ 1 callersFunctionflush
()
examples/gitlab_ci/post_review.py:503
↓ 1 callersFunctionflush
()
examples/gitflic_ci/post_review.py:126
↓ 1 callersMethodflushAndClose
()
internal/session/persist.go:380
↓ 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:290
↓ 1 callersFunctionformatLocateNote
(originalLine: number, resolvedLine: number)
extensions/vscode/src/extension/providers/commentAnchor.ts:195
↓ 1 callersFunctionformatModels
(entry: ProviderEntry)
extensions/vscode/src/webview/components/CustomProviderManager.tsx:16
↓ 1 callersFunctionformatNpmDownloads
(n: number)
pages/src/components/HighlightsSection.tsx:13
↓ 1 callersFunctionformatNumber
(n int)
internal/viewer/server.go:245
↓ 1 callersFunctionformatRelative
(date?: Date)
extensions/vscode/src/extension/services/GitService.ts:505
↓ 1 callersFunctionformatReviewResult
(result: RunResult, preview: boolean)
plugins/open-code-review/opencode/open-code-review.ts:256
↓ 1 callersFunctionformatScanScope
(paths []string)
internal/session/resume.go:267
↓ 1 callersFunctionformatWarningEntry
(w)
scripts/github-actions/post-review-comments.js:1596
↓ 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
Assemble the visible inline-discussion body. The per-comment id tag (when provided) is prepended as an HTML comment so :func:`reconcile_poste
examples/gitlab_ci/post_review.py:254
↓ 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. The Be
examples/gitlab_ci/post_review.py:278
↓ 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 callersFunctionformat_warning_entry
Format a single warning as a compact ``file (type): message`` bullet.
examples/gitlab_ci/post_review.py:312
↓ 1 callersFunctiongetAllTags
(language: string)
pages/src/content/blog/index.ts:105
↓ 1 callersFunctiongetAuthenticatedLogin
(github, log)
scripts/github-actions/post-review-comments.js:929
↓ 1 callersFunctiongetBlogContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:90
↓ 1 callersFunctiongetDocContent
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:208
↓ 1 callersFunctiongetHeader
(headers, name)
scripts/github-actions/post-review-comments.js:1072
↓ 1 callersFunctiongetInstalledVersion
(binPath)
scripts/update.js:63
↓ 1 callersMethodgetOrLoad
(encName string)
internal/llm/client.go:279
↓ 1 callersFunctiongetPlatformPackageName
()
scripts/platform.js:21
↓ 1 callersFunctiongetPrimaryLabel
()
extensions/vscode/src/webview/views/IdleView.tsx:33
↓ 1 callersMethodgetReviewFileStatus
(path: string)
extensions/vscode/src/extension/services/GitService.ts:416
↓ 1 callersFunctiongetValidSlugs
(language: string)
pages/src/pages/BlogPage.tsx:31
↓ 1 callersFunctionget_diff_inventory
Cached diff inventory for the 400 line-resolution fallback.
examples/gitlab_ci/post_review.py:1341
↓ 1 callersMethodget_mr_diffs
Build a diff inventory from ``GET /merge_requests/:iid/diffs``.
examples/gitlab_ci/post_review.py:975
↓ 1 callersMethodgitLs
(ctx context.Context, args ...string)
internal/scan/provider.go:245
↓ 1 callersMethodhandle
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:70
↓ 1 callersMethodhandle
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/SidebarProvider.ts:60
↓ 1 callersMethodhandleDown
()
cmd/opencodereview/provider_tui.go:1779
↓ 1 callersMethodhandleEnter
()
cmd/opencodereview/provider_tui.go:1694
↓ 1 callersMethodhandleMessage
(msg: WebviewToHost)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:79
↓ 1 callersFunctionhandleResize
()
pages/src/components/ColorBends.tsx:215
↓ 1 callersMethodhandleUp
()
cmd/opencodereview/provider_tui.go:1752
↓ 1 callersFunctionhandler
(e: MouseEvent)
pages/src/components/Navbar.tsx:44
↓ 1 callersFunctionhasTraversalPathComponent
(pathspec string)
internal/tool/code_search.go:101
↓ 1 callersMethodhtml
(webview: vscode.Webview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:151
↓ 1 callersMethodhtml
(webview: vscode.Webview)
extensions/vscode/src/extension/providers/SidebarProvider.ts:131
↓ 1 callersFunctionidxOf
(arg: vscode.CommentThread | number)
extensions/vscode/src/extension/commands.ts:19
↓ 1 callersMethodindexOfThread
(thread: vscode.CommentThread)
extensions/vscode/src/extension/providers/CommentProvider.ts:309
↓ 1 callersMethodinferJumpBlockReason
未记录原因时根据评论元数据推断(如 L0 多为行号未解析)。
extensions/vscode/src/extension/providers/CommentProvider.ts:236
↓ 1 callersFunctioninitOTLPGRPCProviders
initOTLPGRPCProviders sets up OTLP gRPC exporters for traces and metrics.
internal/telemetry/exporter.go:99
↓ 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:311
↓ 1 callersMethodinitResumeInfo
(items []model.ScanItem)
internal/scan/agent.go:254
↓ 1 callersMethodinstall
全局安装 ocr CLI,流式回显 npm 日志,按 exit code 返回是否成功。
extensions/vscode/src/extension/services/CliService.ts:71
↓ 1 callersMethodinvalidateEnvironmentCache
()
extensions/vscode/src/extension/services/CliService.ts:18
↓ 1 callersFunctionisASCIILetter
(b byte)
internal/diff/git.go:489
↓ 1 callersMethodisAvailable
()
extensions/vscode/src/extension/services/CliService.ts:31
↓ 1 callersFunctionisBotComment
(comment, botLogin)
scripts/github-actions/post-review-comments.js:975
↓ 1 callersFunctionisChunkLoadError
(error: Error)
pages/src/components/ErrorBoundary.tsx:20
← previousnext →1,101–1,200 of 3,737, ranked by callers