Skip to content

Commit

Permalink
allow a back-applied unique tag to be matched against a tag with the …
Browse files Browse the repository at this point in the history
…same version, but having a SHA suffix
  • Loading branch information
siosonel committed Oct 24, 2023
1 parent 4588086 commit 4442e71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ if (opts.refCommit.endsWith('^{commit}')) {
})
if (!commitMsg) throw `error in finding commit message`
if (!commitMsg.startsWith(`v${rootPkg.version} `)) {
throw `the reference tag's commit message does not start with v${rootPkg.version}`
const commitMsgTag = commitMsg.split(' ')[0]
if (!commitMsgTag.startsWith(`v${rootPkg.version}-`)) {
// allow a back-applied unique tag to be matched against a tag with the same version, but having a SHA suffix
throw `the reference tag's commit message does not start with v${rootPkg.version}`
}
}
}
} catch (e) {
Expand Down

0 comments on commit 4442e71

Please sign in to comment.