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

Function encodeBranchPath

src/utils/utils.ts:348–349  ·  view source on GitHub ↗
(branchName: string)

Source from the content-addressed store, hash-verified

346 * `release/1.0` keep their slashes while `#`, `%` and `&` are escaped.
347 */
348const encodeBranchPath = (branchName: string): string =>
349 branchName.split("/").map(encodeURIComponent).join("/");
350
351/**
352 * Construct the branch URL for different providers

Callers 1

constructBranchUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected