MCPcopy Create free account
hub / github.com/github/gh-aw / initRepo

Function initRepo

actions/setup/js/apply_samples.test.cjs:41–48  ·  view source on GitHub ↗
(dir, defaultBranch)

Source from the content-addressed store, hash-verified

39}
40
41function initRepo(dir, defaultBranch) {
42 git(["init", "-q", "-b", defaultBranch], dir);
43 git(["config", "user.email", "ghaw-test@example.com"], dir);
44 git(["config", "user.name", "ghaw test"], dir);
45 fs.writeFileSync(path.join(dir, "README.md"), "# seed\n");
46 git(["add", "."], dir);
47 git(["commit", "-q", "-m", "seed"], dir);
48}
49
50describe.sequential("apply_samples.cjs", () => {
51 let tempDir;

Callers 1

Calls 1

gitFunction · 0.85

Tested by

no test coverage detected