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

Function commit

packages/git/src/index.ts:18–25  ·  view source on GitHub ↗
(message: string, cwd: string)

Source from the content-addressed store, hash-verified

16}
17
18export async function commit(message: string, cwd: string) {
19 const gitCmd = await spawn(
20 "git",
21 ["commit", "-m", message, "--allow-empty"],
22 { cwd }
23 );
24 return gitCmd.code === 0;
25}
26
27export async function getAllTags(cwd: string): Promise<Set<string>> {
28 const gitCmd = await spawn("git", ["tag"], { cwd });

Callers 4

setupRepoAndCloneFunction · 0.90
index.test.tsFile · 0.85
createDummyCommitsFunction · 0.85
addFileAndCommitFunction · 0.85

Calls

no outgoing calls

Tested by 3

setupRepoAndCloneFunction · 0.72
createDummyCommitsFunction · 0.68
addFileAndCommitFunction · 0.68