MCPcopy Create free account
hub / github.com/dfinity/orbit / gitTagExists

Function gitTagExists

cli/src/utils.ts:32–36  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

30};
31
32export const gitTagExists = (tag: string): boolean => {
33 const output = execSync(`git tag --list "${tag}"`).toString().trim();
34
35 return output === tag;
36};
37
38export const capitalize = (str: string, lower = false) =>
39 (lower ? str.toLowerCase() : str).replace(/(?:^|\s|["'([{])+\S/g, match => match.toUpperCase());

Callers 1

publish.tsFile · 0.90

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected