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

Function createChangeset

scripts/changeset.test.js:56–68  ·  view source on GitHub ↗

* Create a test changeset file

(filename, bumpType, description, codemod = null)

Source from the content-addressed store, hash-verified

54 * Create a test changeset file
55 */
56function createChangeset(filename, bumpType, description, codemod = null) {
57 let content = `---
58"gh-aw": ${bumpType}
59---
60
61${description}`;
62
63 if (codemod) {
64 content += `\n\n## Codemod\n\n${codemod}`;
65 }
66
67 fs.writeFileSync(path.join(CHANGESET_DIR, filename), content, "utf8");
68}
69
70/**
71 * Run changeset version command and capture output

Callers 1

runTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected