feat: Add support for syntax for breaking change.

This commit is contained in:
Gustavo Parreira 2020-09-01 16:01:53 +01:00
parent 5cb6d7093b
commit 6b50245619
No known key found for this signature in database
GPG Key ID: CB43E3E20D2B13FC
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ Toolkit.run(async tools => {
}
let version = 'patch'
if (messages.map(message => message.includes('BREAKING CHANGE') || message.includes('major')).includes(true)) {
if (messages.map(message => message.match(/^([a-zA-Z]+)(\(.+\))?(\!)\:/) || message.includes('BREAKING CHANGE') || message.includes('major')).includes(true)) {
version = 'major'
} else if (messages.map(
message => message.toLowerCase().startsWith('feat') || message.toLowerCase().includes('minor')).includes(true)) {