commit
9b143ed11d
6
index.js
6
index.js
|
@ -12,7 +12,11 @@ Toolkit.run(async tools => {
|
|||
const pkg = tools.getPackageJSON()
|
||||
const event = tools.context.payload
|
||||
|
||||
const messages = event.commits.map(commit => commit.message + '\n' + commit.body)
|
||||
if (!event.commits) {
|
||||
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 commitMessage = 'version bump to'
|
||||
const isVersionBump = messages.map(message => message.toLowerCase().includes(commitMessage)).includes(true)
|
||||
|
|
Loading…
Reference in New Issue