support for preId

This commit is contained in:
gmaggiodev 2020-10-06 18:26:53 +02:00
parent e18d844842
commit 07e8645be0
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ Toolkit.run(async tools => {
const event = tools.context.payload const event = tools.context.payload
if (!event.commits) { if (!event.commits) {
console.log('Couldn\'t find any commits in this event, incrementing patch/prerelease version...') console.log('Couldn\'t find any commits in this event, incrementing patch version...')
} }
const messages = event.commits ? event.commits.map(commit => commit.message + '\n' + commit.body) : [] const messages = event.commits ? event.commits.map(commit => commit.message + '\n' + commit.body) : []