MCPcopy Index your code
hub / github.com/simstudioai/sim / stripRefsHeads

Function stripRefsHeads

apps/sim/connectors/azure-devops/azure-devops.ts:146–148  ·  view source on GitHub ↗

* Strips the `refs/heads/` prefix from a default-branch ref so it can be used as * a `versionDescriptor.version` branch name.

(ref: string)

Source from the content-addressed store, hash-verified

144 * a `versionDescriptor.version` branch name.
145 */
146function stripRefsHeads(ref: string): string {
147 return ref.replace(/^refs\/heads\//, '')
148}
149
150/**
151 * Reads a trimmed string config value, returning '' when absent.

Callers 2

resolveRepoFilesFunction · 0.85
resolveFileBranchFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected