MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / writeAndCommit

Function writeAndCommit

test/release-notes.test.ts:27–33  ·  view source on GitHub ↗
(repo: string, file: string, content: string, msg: string)

Source from the content-addressed store, hash-verified

25}
26
27function writeAndCommit(repo: string, file: string, content: string, msg: string): void {
28 const fp = path.join(repo, file);
29 // Sync write for test setup speed
30 require('fs').writeFileSync(fp, content);
31 gitSetup(repo, ['add', file]);
32 gitSetup(repo, ['commit', '-m', msg]);
33}
34
35describe('classify-commits', () => {
36 const base = { sha: 'abc1234', date: '2026-05-28', author: 'sev', body: '' };

Callers 1

Calls 1

gitSetupFunction · 0.70

Tested by

no test coverage detected