mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-15 15:26:31 +00:00
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:
parent
f22938030d
commit
39401b3bfa
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user