🎈 1.21.10 (#63)
* Add version '1.12.10' * bump: Prevent destructive action when multiple versions pile
This commit is contained in:
@@ -20,6 +20,12 @@ If the PR is **not** passing:
|
||||
`
|
||||
|
||||
module.exports = async ([newVersion], helpers) => {
|
||||
const existingPr = await gh.findPullRequest({ titleIncludes: '🎈', status: 'open' })
|
||||
if (existingPr) {
|
||||
console.warn('There is already an open PR; cannot create a new one until that one is closed.', existingPr)
|
||||
await gh.comment(existingPr.number, `Cannot open new PR for version '${newVersion}' as this one is already open. Maintainers: Once this is merged, please manually re-run the update workflow for the new version (${newVersion}).`)
|
||||
return
|
||||
}
|
||||
try {
|
||||
bump(newVersion)
|
||||
try { exec('git branch -D bump') } catch (e) { console.log('No existing branch to delete; ok.') }
|
||||
|
||||
Reference in New Issue
Block a user