MCPcopy Create free account
hub / github.com/SethGammon/Citadel / withTempProject

Function withTempProject

scripts/test-pr-ready.js:20–27  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

18}
19
20function withTempProject(run) {
21 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-pr-ready-'));
22 try {
23 return run(dir);
24 } finally {
25 fs.rmSync(dir, { recursive: true, force: true });
26 }
27}
28
29function initGit(projectRoot) {
30 childProcess.execFileSync('git', ['init'], { cwd: projectRoot, stdio: 'ignore' });

Callers 1

test-pr-ready.jsFile · 0.70

Calls 1

runFunction · 0.70

Tested by

no test coverage detected