@@ -9,9 +9,9 @@ import { verify } from "./verify";
99
1010const NEW_ENTRY = / ^ # { 1 , 2 } \s + \[ \d / ;
1111
12- async function getCurrentReleaseNotes ( ) : Promise < string > {
12+ async function getCurrentReleaseNotes ( autoConfirm : boolean ) : Promise < string > {
1313 log . info ( "Update the root CHANGELOG.md with any additional changes." ) ;
14- if ( ! ( await verify ( "Continue with the release?" ) ) ) {
14+ if ( ! ( await verify ( "Continue with the release?" , autoConfirm ) ) ) {
1515 process . exit ( 1 ) ;
1616 }
1717
@@ -44,12 +44,12 @@ async function getCurrentReleaseNotes(): Promise<string> {
4444 * @returns the current release markdown that can be used to generate a github
4545 * release for the current tag.
4646 */
47- export async function initBlog ( ) : Promise < string > {
47+ export async function initBlog ( autoConfirm : boolean ) : Promise < string > {
4848 const blogPath = join ( documentationRoot , src , "blogs" , "index.md" ) ;
4949 const version = ( await getPackageJson ( "react-md" ) ) . version ;
5050 const blog = await readFile ( blogPath , "utf-8" ) ;
5151
52- const currentReleaseNotes = await getCurrentReleaseNotes ( ) ;
52+ const currentReleaseNotes = await getCurrentReleaseNotes ( autoConfirm ) ;
5353 const blogMarkdown = currentReleaseNotes
5454 // create smaller headings and remove margin
5555 . replace ( / ^ ( # # # ) \s + ( .+ ) $ / gm, "##### $2<!-- no-margin -->" )
0 commit comments