From dd8b7e42d6bbda88b0ff6686e39e8bc8f5e16268 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Fri, 2 Nov 2018 16:45:11 +0100 Subject: [PATCH] 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 --- versionist.conf.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/versionist.conf.js b/versionist.conf.js index 8f74945d..40a07610 100644 --- a/versionist.conf.js +++ b/versionist.conf.js @@ -34,15 +34,15 @@ module.exports = { }, includeCommitWhen: (commit) => { - return commit.footer['Changelog-Entry'] + return commit.footer['Changelog-entry'] }, getIncrementLevelFromCommit: (commit) => { - if (/none/i.test(commit.footer['Change-Type'])) { + if (/none/i.test(commit.footer['Change-type'])) { return null } - return commit.footer['Change-Type'] && - _.toLower(commit.footer['Change-Type']) + return commit.footer['Change-type'] && + _.toLower(commit.footer['Change-type']) }, transformTemplateData: (data) => { @@ -73,7 +73,7 @@ module.exports = { '', '{{#each features}}', '{{#with footer}}', - '- {{capitalize Changelog-Entry}}', + '- {{capitalize Changelog-entry}}', '{{/with}}', '{{/each}}', '{{/if}}', @@ -83,7 +83,7 @@ module.exports = { '', '{{#each fixes}}', '{{#with footer}}', - '- {{capitalize Changelog-Entry}}', + '- {{capitalize Changelog-entry}}', '{{/with}}', '{{/each}}', '{{/if}}', @@ -93,7 +93,7 @@ module.exports = { '', '{{#each misc}}', '{{#with footer}}', - '- {{capitalize Changelog-Entry}}', + '- {{capitalize Changelog-entry}}', '{{/with}}', '{{/each}}', '{{/if}}'