MCPcopy Create free account
hub / github.com/Snapchat/Valdi / resolveLatestReleaseRef

Function resolveLatestReleaseRef

npm_modules/cli/src/utils/githubUtils.ts:98–102  ·  view source on GitHub ↗
(repoUrl: string)

Source from the content-addressed store, hash-verified

96
97/** @deprecated Use getLatestReleaseTag for the GitHub "Latest" release; this returns an arbitrary tag from git ls-remote. */
98export async function resolveLatestReleaseRef(repoUrl: string): Promise<string> {
99 const tag = await getLatestReleaseTagFromGit(repoUrl);
100 // Template expects either ref (refs/tags/X) or tag name for archive URL; we use tag name.
101 return tag;
102}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected