MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / encodeRepositoryPath

Function encodeRepositoryPath

src/utils/utils.ts:307–308  ·  view source on GitHub ↗
(repositoryName: string)

Source from the content-addressed store, hash-verified

305 * escaped. Idempotent: encoded and decoded inputs both encode exactly once.
306 */
307const encodeRepositoryPath = (repositoryName: string): string =>
308 repositoryName.split("/").map(encodePathSegment).join("/");
309
310/**
311 * Construct the repository URL for different providers

Callers 3

constructPullRequestUrlFunction · 0.85
constructRepositoryUrlFunction · 0.85
constructBranchUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected