@@ -9,9 +9,9 @@ import { verify } from "./verify";
9
9
10
10
const NEW_ENTRY = / ^ # { 1 , 2 } \s + \[ \d / ;
11
11
12
- async function getCurrentReleaseNotes ( ) : Promise < string > {
12
+ async function getCurrentReleaseNotes ( autoConfirm : boolean ) : Promise < string > {
13
13
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 ) ) ) {
15
15
process . exit ( 1 ) ;
16
16
}
17
17
@@ -44,12 +44,12 @@ async function getCurrentReleaseNotes(): Promise<string> {
44
44
* @returns the current release markdown that can be used to generate a github
45
45
* release for the current tag.
46
46
*/
47
- export async function initBlog ( ) : Promise < string > {
47
+ export async function initBlog ( autoConfirm : boolean ) : Promise < string > {
48
48
const blogPath = join ( documentationRoot , src , "blogs" , "index.md" ) ;
49
49
const version = ( await getPackageJson ( "react-md" ) ) . version ;
50
50
const blog = await readFile ( blogPath , "utf-8" ) ;
51
51
52
- const currentReleaseNotes = await getCurrentReleaseNotes ( ) ;
52
+ const currentReleaseNotes = await getCurrentReleaseNotes ( autoConfirm ) ;
53
53
const blogMarkdown = currentReleaseNotes
54
54
// create smaller headings and remove margin
55
55
. replace ( / ^ ( # # # ) \s + ( .+ ) $ / gm, "##### $2<!-- no-margin -->" )
0 commit comments