(
tag: string,
title: string,
body: string,
rootDir: string,
targetSha?: string,
opts?: { prerelease?: boolean },
)
| 372 | |
| 373 | /** Create a draft GitHub release */ |
| 374 | export 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 */ |
| 389 | export async function updateReleaseBody(tag: string, body: string, rootDir: string): Promise<void> { |
no test coverage detected
searching dependent graphs…