fix(versionist): Ignore case of Change-Type value (#1847)

There's a commit that slipped in (sorry) with a capitalised
Change-Type value of "Patch". This avoids versionist erroring,
by always lowercasing that value.

Change-Type: PATCH
This commit is contained in:
Jonas Hermsmeier 2017-12-05 14:40:32 +01:00 committed by Juan Cruz Viotti
parent f22938030d
commit 39401b3bfa

View File

@ -38,7 +38,11 @@ module.exports = {
},
getIncrementLevelFromCommit: (commit) => {
return commit.footer['Change-Type']
if (/none/i.test(commit.footer['Change-Type'])) {
return null
}
return commit.footer['Change-Type'] &&
_.toLower(commit.footer['Change-Type'])
},
transformTemplateData: (data) => {