MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / outputDraft

Function outputDraft

scripts/draft-changelog.ts:113–126  ·  view source on GitHub ↗
(options: Options, draft: DraftOutput)

Source from the content-addressed store, hash-verified

111}
112
113function outputDraft(options: Options, draft: DraftOutput) {
114 if (!options.write) {
115 console.log(draft.releaseNotes);
116 console.log("\n--- Mintlify update block ---\n");
117 console.log(draft.docsUpdate);
118 console.log(
119 "\nRun with --write to create the release file and prepend the docs changelog entry.",
120 );
121 return;
122 }
123
124 writeReleaseNotes(options.version, draft.releaseNotes, options.force);
125 prependDocsUpdate(options.version, draft.docsUpdate);
126}
127
128export function parseArgs(args: string[]): Options {
129 const parsed = createDefaultOptions();

Callers 1

mainFunction · 0.85

Calls 2

writeReleaseNotesFunction · 0.85
prependDocsUpdateFunction · 0.70

Tested by

no test coverage detected