From 6b502456194f8ad22019054694106690191eea2b Mon Sep 17 00:00:00 2001 From: Gustavo Parreira Date: Tue, 1 Sep 2020 16:01:53 +0100 Subject: [PATCH] feat: Add support for syntax for breaking change. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f11657c..a4f4690 100644 --- a/index.js +++ b/index.js @@ -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)) {