MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / createDraftRelease

Function createDraftRelease

packages/bumpy/src/core/github-release.ts:374–386  ·  view source on GitHub ↗
(
  tag: string,
  title: string,
  body: string,
  rootDir: string,
  targetSha?: string,
  opts?: { prerelease?: boolean },
)

Source from the content-addressed store, hash-verified

372
373/** Create a draft GitHub release */
374export async function createDraftRelease(
375 tag: string,
376 title: string,
377 body: string,
378 rootDir: string,
379 targetSha?: string,
380 opts?: { prerelease?: boolean },
381): Promise<void> {
382 const args = ['gh', 'release', 'create', tag, '--title', title, '--notes', body, '--draft'];
383 if (opts?.prerelease) args.push('--prerelease');
384 if (targetSha) args.push('--target', targetSha);
385 await withReleaseToken(() => runArgsAsync(args, { cwd: rootDir }));
386}
387
388/** Update an existing GitHub release's body */
389export async function updateReleaseBody(tag: string, body: string, rootDir: string): Promise<void> {

Callers 1

runPublishFlowFunction · 0.90

Calls 2

runArgsAsyncFunction · 0.90
withReleaseTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…