From bd0d6b1a02d86cf2d057e99eb397491b45071f63 Mon Sep 17 00:00:00 2001 From: "trop[bot]" Date: Sun, 19 Aug 2018 14:46:17 -0700 Subject: [PATCH] chore: match the bump commit exactly, reverts should not count (#14209) --- script/prepare-release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/prepare-release.js b/script/prepare-release.js index b74ae51df32a..23c4ff39c511 100755 --- a/script/prepare-release.js +++ b/script/prepare-release.js @@ -252,7 +252,7 @@ async function promptForVersion (version) { // function to determine if there have been commits to master since the last release async function changesToRelease () { - let lastCommitWasRelease = new RegExp(`Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?`, 'g') + let lastCommitWasRelease = new RegExp(`^Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?$`, 'g') let lastCommit = await GitProcess.exec(['log', '-n', '1', `--pretty=format:'%s'`], gitDir) return !lastCommitWasRelease.test(lastCommit.stdout) }