Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,533 in github.com/alibaba/open-code-review
⨍
Functions
3,533
◇
Types & classes
317
↓ 3 callers
Method
_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:138
↓ 3 callers
Function
addExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:39
↓ 3 callers
Function
addRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:17
↓ 3 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2579
↓ 3 callers
Function
applyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:67
↓ 3 callers
Function
applyProviderField
(entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:516
↓ 3 callers
Function
budgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 3 callers
Function
buildBadge
(comment)
scripts/github-actions/post-review-comments.js:1374
↓ 3 callers
Method
buildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:468
↓ 3 callers
Function
buildToolInputSchema
(params map[string]any)
internal/llm/client.go:801
↓ 3 callers
Function
buildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:461
↓ 3 callers
Method
cancel
()
extensions/vscode/src/extension/services/CliService.ts:161
↓ 3 callers
Function
captureStderr
captureStderr captures everything written to os.Stderr during fn. Mirrors captureStdout; used to assert structured usage emitted on the failure path.
cmd/opencodereview/output_helpers_test.go:400
↓ 3 callers
Method
clear
()
extensions/vscode/src/extension/providers/lineOffset.ts:20
↓ 3 callers
Function
cloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1203
↓ 3 callers
Method
cloned
cloned returns a copy of the manifest whose coverage slices are owned copies, so every Finalize caller gets an independent, non-aliased snapshot. The
internal/session/manifest.go:881
↓ 3 callers
Method
configPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callers
Method
confirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1480
↓ 3 callers
Function
contains
(list []string, want string)
internal/scan/provider_more_test.go:139
↓ 3 callers
Function
cpProtocolIndex
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:184
↓ 3 callers
Method
customProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:194
↓ 3 callers
Function
customStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callers
Function
deleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:245
↓ 3 callers
Function
describeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:348
↓ 3 callers
Function
describeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:334
↓ 3 callers
Function
diffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:153
↓ 3 callers
Function
displayMode
(m string)
cmd/opencodereview/session_cmd.go:327
↓ 3 callers
Function
emptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:18
↓ 3 callers
Function
excludeToolDef
excludeToolDef returns a copy of defs with any entries whose function name matches name removed. Used by `ocr scan` to hide tools that don't make sens
cmd/opencodereview/shared.go:233
↓ 3 callers
Method
executePlanPhase
executePlanPhase runs the plan task for a single file, sending template messages with resolved placeholders and collecting the LLM response as plan gu
internal/agent/agent.go:1462
↓ 3 callers
Function
extractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 3 callers
Function
fileReadToolCallResponse
(callID, args string)
internal/llmloop/loop_test.go:61
↓ 3 callers
Function
finish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:145
↓ 3 callers
Method
focusCPStep
()
cmd/opencodereview/provider_tui.go:1314
↓ 3 callers
Function
formatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:1480
↓ 3 callers
Function
formatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:1584
↓ 3 callers
Function
getAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:91
↓ 3 callers
Function
getBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:87
↓ 3 callers
Function
getPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:1284
↓ 3 callers
Function
groupIntoRounds
groupIntoRounds parses messages[start:] into logical (assistant + tool_results) pairs.
internal/llmloop/compression.go:79
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:30
↓ 3 callers
Function
initMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:389
↓ 3 callers
Function
initOTLPHTTPProviders
initOTLPHTTPProviders sets up OTLP HTTP exporters for traces and metrics. Unlike the gRPC path this uses WithEndpointURL rather than WithEndpoint, so
internal/telemetry/exporter.go:153
↓ 3 callers
Function
initOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:86
↓ 3 callers
Method
isCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2683
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:591
↓ 3 callers
Method
isPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns. Patterns are res
internal/diff/git.go:258
↓ 3 callers
Function
isPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:141
↓ 3 callers
Function
isSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:60
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:410
↓ 3 callers
Method
itemCount
()
cmd/opencodereview/provider_tui.go:2687
↓ 3 callers
Function
itemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:130
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1939
↓ 3 callers
Function
listCustomProviderNames
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:168
↓ 3 callers
Method
loadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:233
↓ 3 callers
Function
loadReviewResumeState
(repoDir string, opts reviewOptions)
cmd/opencodereview/review_cmd.go:283
↓ 3 callers
Function
loadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:230
↓ 3 callers
Function
log
(msg)
examples/gitlab_ci/post_review.py:40
↓ 3 callers
Function
makeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive filterDiffs and filterLargeDiffs.
internal/agent/budget_test.go:68
↓ 3 callers
Function
makeErr
(message, status, headers, data)
scripts/github-actions/post-review-comments.test.js:61
↓ 3 callers
Function
makeTask
()
internal/diff/relocation_test.go:33
↓ 3 callers
Function
manifestMessage
(manifest *session.RunManifest, findings int)
cmd/opencodereview/output.go:378
↓ 3 callers
Function
mapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callers
Method
maybeRunPlan
maybeRunPlan invokes PLAN_TASK on the file and returns a human-readable guidance string suitable for {{plan_guidance}} substitution. Returns "(no pre-
internal/scan/agent.go:743
↓ 3 callers
Method
mergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:139
↓ 3 callers
Function
modelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1014
↓ 3 callers
Function
normalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callers
Function
normalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:587
↓ 3 callers
Function
parseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:9
↓ 3 callers
Function
parseRecordTime
(s string)
internal/session/list.go:304
↓ 3 callers
Method
passThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1328
↓ 3 callers
Function
post
(review_input)
examples/gerrit_ci/post_review.py:225
↓ 3 callers
Method
postMessage
(msg: unknown)
extensions/vscode/src/webview/bridge.ts:6
↓ 3 callers
Method
prepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:514
↓ 3 callers
Function
printWizardCancelled
printWizardCancelled prints the standard Esc-cancel message for config wizards. changesDescription is a short noun phrase, e.g. "Configuration changes
cmd/opencodereview/provider_cmd.go:59
↓ 3 callers
Function
readFileSync
(file)
scripts/github-actions/post-review-comments.test.js:53
↓ 3 callers
Function
readJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:209
↓ 3 callers
Method
recordWarning
(warningType, file, message string)
internal/scan/agent.go:230
↓ 3 callers
Function
registryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:424
↓ 3 callers
Method
render
()
pages/src/components/ErrorBoundary.tsx:59
↓ 3 callers
Function
renderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1956
↓ 3 callers
Function
resolveAllowedHostsFromEnv
resolveAllowedHostsFromEnv reads the OCR_VIEWER_ALLOWED_HOSTS environment variable and combines it with the bind host to produce the active allowlist.
internal/viewer/hostguard.go:136
↓ 3 callers
Function
resolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callers
Function
resolveConfigPath
resolveConfigPath returns OCR_CONFIG_PATH when set, otherwise the default user config path. Intentionally used only by read-only commands (e.g. ocr ll
cmd/opencodereview/config_cmd.go:102
↓ 3 callers
Method
resolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callers
Function
resolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:154
↓ 3 callers
Function
resolveNativeBinary
()
scripts/platform.js:39
↓ 3 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1085
↓ 3 callers
Function
reviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:309
↓ 3 callers
Method
rollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:454
↓ 3 callers
Function
routeComment
(comment, policy)
scripts/github-actions/post-review-comments.js:1441
↓ 3 callers
Method
ruleConfigSHA256
ruleConfigSHA256 is the deterministic identity of the resolved rule configuration this run operates with: the resolver's effective rule-text layers (c
internal/agent/agent.go:859
↓ 3 callers
Method
run
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:24
↓ 3 callers
Function
runSessionList
()
cmd/opencodereview/session_cmd.go:121
↓ 3 callers
Function
runSessionListCompat
runSessionListCompat provides test compatibility for old-style runSessionList([]string{...}) calls.
cmd/opencodereview/compat_test.go:56
↓ 3 callers
Function
runSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:148
↓ 3 callers
Function
runSessionShowCompat
runSessionShowCompat provides test compatibility for old-style runSessionShow([]string{...}) calls.
cmd/opencodereview/compat_test.go:73
↓ 3 callers
Method
run_main_with_captured_poster
Run main() with make_poster mocked; return (rc, captured_auth_header).
examples/gitlab_ci/post_review_test.py:967
↓ 3 callers
Function
savedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2376
↓ 3 callers
Method
scanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:244
← previous
next →
501–600 of 3,533, ranked by callers