mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 09:16:38 +00:00
fix(versionist): Adapt versionist.conf.js to new guidelines
Change-type: patch Changelog-entry: Modify versionist.conf.js to match new internal commit guidelines Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
This commit is contained in:
parent
2655c86be3
commit
dd8b7e42d6
@ -34,15 +34,15 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
includeCommitWhen: (commit) => {
|
includeCommitWhen: (commit) => {
|
||||||
return commit.footer['Changelog-Entry']
|
return commit.footer['Changelog-entry']
|
||||||
},
|
},
|
||||||
|
|
||||||
getIncrementLevelFromCommit: (commit) => {
|
getIncrementLevelFromCommit: (commit) => {
|
||||||
if (/none/i.test(commit.footer['Change-Type'])) {
|
if (/none/i.test(commit.footer['Change-type'])) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
return commit.footer['Change-Type'] &&
|
return commit.footer['Change-type'] &&
|
||||||
_.toLower(commit.footer['Change-Type'])
|
_.toLower(commit.footer['Change-type'])
|
||||||
},
|
},
|
||||||
|
|
||||||
transformTemplateData: (data) => {
|
transformTemplateData: (data) => {
|
||||||
@ -73,7 +73,7 @@ module.exports = {
|
|||||||
'',
|
'',
|
||||||
'{{#each features}}',
|
'{{#each features}}',
|
||||||
'{{#with footer}}',
|
'{{#with footer}}',
|
||||||
'- {{capitalize Changelog-Entry}}',
|
'- {{capitalize Changelog-entry}}',
|
||||||
'{{/with}}',
|
'{{/with}}',
|
||||||
'{{/each}}',
|
'{{/each}}',
|
||||||
'{{/if}}',
|
'{{/if}}',
|
||||||
@ -83,7 +83,7 @@ module.exports = {
|
|||||||
'',
|
'',
|
||||||
'{{#each fixes}}',
|
'{{#each fixes}}',
|
||||||
'{{#with footer}}',
|
'{{#with footer}}',
|
||||||
'- {{capitalize Changelog-Entry}}',
|
'- {{capitalize Changelog-entry}}',
|
||||||
'{{/with}}',
|
'{{/with}}',
|
||||||
'{{/each}}',
|
'{{/each}}',
|
||||||
'{{/if}}',
|
'{{/if}}',
|
||||||
@ -93,7 +93,7 @@ module.exports = {
|
|||||||
'',
|
'',
|
||||||
'{{#each misc}}',
|
'{{#each misc}}',
|
||||||
'{{#with footer}}',
|
'{{#with footer}}',
|
||||||
'- {{capitalize Changelog-Entry}}',
|
'- {{capitalize Changelog-entry}}',
|
||||||
'{{/with}}',
|
'{{/with}}',
|
||||||
'{{/each}}',
|
'{{/each}}',
|
||||||
'{{/if}}'
|
'{{/if}}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user