MCPcopy Index your code
hub / github.com/changesets/changesets / tagExists

Function tagExists

packages/git/src/index.ts:289–294  ·  view source on GitHub ↗
(tagStr: string, cwd: string)

Source from the content-addressed store, hash-verified

287}
288
289export async function tagExists(tagStr: string, cwd: string) {
290 const gitCmd = await spawn("git", ["tag", "-l", tagStr], { cwd });
291 const output = gitCmd.stdout.toString().trim();
292 const tagExists = !!output;
293 return tagExists;
294}
295
296export async function getCurrentCommitId({
297 cwd,

Callers 1

index.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected