feat: Add support for syntax for breaking change.
This commit is contained in:
parent
5cb6d7093b
commit
6b50245619
2
index.js
2
index.js
|
@ -26,7 +26,7 @@ Toolkit.run(async tools => {
|
||||||
}
|
}
|
||||||
|
|
||||||
let version = 'patch'
|
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'
|
version = 'major'
|
||||||
} else if (messages.map(
|
} else if (messages.map(
|
||||||
message => message.toLowerCase().startsWith('feat') || message.toLowerCase().includes('minor')).includes(true)) {
|
message => message.toLowerCase().startsWith('feat') || message.toLowerCase().includes('minor')).includes(true)) {
|
||||||
|
|
Loading…
Reference in New Issue