Skip to content

Commit 79a1382

Browse files
trop[bot]MarshallOfSound
authored andcommitted
chore: match the bump commit exactly, reverts should not count (electron#14208)
1 parent b0d5ba1 commit 79a1382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/prepare-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async function promptForVersion (version) {
250250

251251
// function to determine if there have been commits to master since the last release
252252
async function changesToRelease () {
253-
let lastCommitWasRelease = new RegExp(`Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?`, 'g')
253+
let lastCommitWasRelease = new RegExp(`^Bump v[0-9.]*(-beta[0-9.]*)?(-nightly[0-9.]*)?$`, 'g')
254254
let lastCommit = await GitProcess.exec(['log', '-n', '1', `--pretty=format:'%s'`], gitDir)
255255
return !lastCommitWasRelease.test(lastCommit.stdout)
256256
}

0 commit comments

Comments
 (0)