MCPcopy
hub / github.com/coder/mux / resolveRepoRootProjectPath

Function resolveRepoRootProjectPath

src/browser/utils/executeBash.ts:77–83  ·  view source on GitHub ↗
(
  workspaceMetadata: Pick<FrontendWorkspaceMetadata, "projects"> | null | undefined,
  workspaceRelativePath: string | null | undefined
)

Source from the content-addressed store, hash-verified

75 * each repo under a top-level project-name directory inside the shared container root.
76 */
77export function resolveRepoRootProjectPath(
78 workspaceMetadata: Pick<FrontendWorkspaceMetadata, "projects"> | null | undefined,
79 workspaceRelativePath: string | null | undefined
80): string | undefined {
81 return resolveWorkspaceRelativeProjectMatch(workspaceMetadata, workspaceRelativePath)
82 ?.projectPath;
83}
84
85/**
86 * Repo-root git commands must strip any top-level sibling-project prefix once execution switches to

Callers 4

ReviewPanelFunction · 0.90
useReadMoreFunction · 0.90

Tested by

no test coverage detected