X Tutup
Skip to content

Commit 899dd03

Browse files
chore: match the bump commit exactly, reverts should not count (electron#14207)
1 parent 5b48e03 commit 899dd03

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)
X Tutup