From f129f1c5d8234600fc19cfff2da9a77cc43647bf Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Sun, 29 Sep 2019 23:28:54 +0700 Subject: [PATCH 1/2] Update strip-changelog-pre-version-postfix script to strip .0 from prerelease version numbers --- bin/strip-changelog-pre-version-postfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/strip-changelog-pre-version-postfix b/bin/strip-changelog-pre-version-postfix index a5c3fc58c..f54459ae1 100755 --- a/bin/strip-changelog-pre-version-postfix +++ b/bin/strip-changelog-pre-version-postfix @@ -4,5 +4,5 @@ const data = fs.readFileSync('CHANGELOG.md', 'utf8') const date = new Date().toJSON().split('T')[0] fs.writeFileSync( 'CHANGELOG.md', - data.replace(/(## v[\d.]+)-pre\.\d+/g, `$1 (${date})`) + data.replace(/(## v[\d.]+?)(?:\.0)?(?:\.0)?-pre\.\d+/g, `$1 (${date})`) ) From 0c10fa1ed813ccd7653b8679e4e793f27939ca4d Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Sun, 29 Sep 2019 23:31:47 +0700 Subject: [PATCH 2/2] Remove .0 version suffixes from CHANGELOG.md --- CHANGELOG.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c8a02c9e..f7224847c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ [@hajimehoshi]: https://github.com/hajimehoshi [@nekokan]: https://github.com/Nekokan -## v46.0.0 (2019-09-12) +## v46 (2019-09-12) ### New stuff @@ -36,7 +36,7 @@ [#553]: https://github.com/bemusic/bemuse/pull/553 [#554]: https://github.com/bemusic/bemuse/pull/554 -## v45.1.0 (2019-09-02) +## v45.1 (2019-09-02) ### Internals @@ -45,7 +45,7 @@ [#549]: https://github.com/bemusic/bemuse/pull/549 -## v45.0.0 (2019-08-31) +## v45 (2019-08-31) ### New stuff @@ -67,7 +67,7 @@ [#546]: https://github.com/bemusic/bemuse/pull/546 [#547]: https://github.com/bemusic/bemuse/pull/547 -## v44.5.0 (2019-08-30) +## v44.5 (2019-08-30) ### Internals @@ -78,7 +78,7 @@ [#544]: https://github.com/bemusic/bemuse/pull/544 -## v44.4.0 (2019-08-29) +## v44.4 (2019-08-29) ### New stuff @@ -92,7 +92,7 @@ [#541]: https://github.com/bemusic/bemuse/pull/541 [#542]: https://github.com/bemusic/bemuse/pull/542 -## v44.3.0 (2019-08-29) +## v44.3 (2019-08-29) ### Internals @@ -116,7 +116,7 @@ [#536]: https://github.com/bemusic/bemuse/pull/536 -## v44.1.0 (2019-08-29) +## v44.1 (2019-08-29) ### New stuff