diff --git a/packages/conventional-changelog-angular/templates/commit.hbs b/packages/conventional-changelog-angular/templates/commit.hbs index 9eb8a041f..e10a0d901 100644 --- a/packages/conventional-changelog-angular/templates/commit.hbs +++ b/packages/conventional-changelog-angular/templates/commit.hbs @@ -6,7 +6,7 @@ {{~/if}} {{~!-- commit link --}} {{#if @root.linkReferences~}} - ([{{hash}}]( + ([{{shortHash}}]( {{~#if @root.repository}} {{~#if @root.host}} {{~@root.host}}/ @@ -20,7 +20,7 @@ {{~/if}}/ {{~@root.commit}}/{{hash}})) {{~else}} - {{~hash}} + {{~shortHash}} {{~/if}} {{~!-- commit references --}} diff --git a/packages/conventional-changelog-angular/writer-opts.js b/packages/conventional-changelog-angular/writer-opts.js index b102bab51..dba3ca49a 100644 --- a/packages/conventional-changelog-angular/writer-opts.js +++ b/packages/conventional-changelog-angular/writer-opts.js @@ -62,7 +62,7 @@ function getWriterOpts () { } if (typeof commit.hash === `string`) { - commit.hash = commit.hash.substring(0, 7) + commit.shortHash = commit.hash.substring(0, 7) } if (typeof commit.subject === `string`) { diff --git a/packages/conventional-changelog-atom/templates/commit.hbs b/packages/conventional-changelog-atom/templates/commit.hbs index 5cc5b5490..91f8e79da 100644 --- a/packages/conventional-changelog-atom/templates/commit.hbs +++ b/packages/conventional-changelog-atom/templates/commit.hbs @@ -1,5 +1,5 @@ * {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}} -{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{hash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{hash~}}{{/if}} +{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}} {{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}} diff --git a/packages/conventional-changelog-atom/writer-opts.js b/packages/conventional-changelog-atom/writer-opts.js index 901df5008..d7f65f322 100644 --- a/packages/conventional-changelog-atom/writer-opts.js +++ b/packages/conventional-changelog-atom/writer-opts.js @@ -32,7 +32,7 @@ function getWriterOpts () { emojiLength = commit.emoji.length if (typeof commit.hash === `string`) { - commit.hash = commit.hash.substring(0, 7) + commit.shortHash = commit.hash.substring(0, 7) } if (typeof commit.shortDesc === `string`) { diff --git a/packages/conventional-changelog-codemirror/templates/commit.hbs b/packages/conventional-changelog-codemirror/templates/commit.hbs index d31914e4b..d3ac331f0 100644 --- a/packages/conventional-changelog-codemirror/templates/commit.hbs +++ b/packages/conventional-changelog-codemirror/templates/commit.hbs @@ -1,5 +1,5 @@ {{#if type}}**{{type}}** {{/if}}{{message}} -{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{hash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{hash~}}{{/if}} +{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}} {{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}} diff --git a/packages/conventional-changelog-codemirror/writer-opts.js b/packages/conventional-changelog-codemirror/writer-opts.js index 67357fe0f..1129af709 100644 --- a/packages/conventional-changelog-codemirror/writer-opts.js +++ b/packages/conventional-changelog-codemirror/writer-opts.js @@ -27,7 +27,7 @@ function getWriterOpts () { } if (typeof commit.hash === `string`) { - commit.hash = commit.hash.substring(0, 7) + commit.shortHash = commit.hash.substring(0, 7) } return commit diff --git a/packages/conventional-changelog-conventionalcommits/templates/commit.hbs b/packages/conventional-changelog-conventionalcommits/templates/commit.hbs index 0d4c3c33e..b724b2043 100644 --- a/packages/conventional-changelog-conventionalcommits/templates/commit.hbs +++ b/packages/conventional-changelog-conventionalcommits/templates/commit.hbs @@ -6,9 +6,9 @@ {{~/if}} {{~!-- commit link --}} {{#if @root.linkReferences~}} - ([{{hash}}]({{commitUrlFormat}})) + ([{{shortHash}}]({{commitUrlFormat}})) {{~else}} - {{~hash}} + {{~shortHash}} {{~/if}} {{~!-- commit references --}} diff --git a/packages/conventional-changelog-conventionalcommits/writer-opts.js b/packages/conventional-changelog-conventionalcommits/writer-opts.js index c4f569928..f63e03e29 100644 --- a/packages/conventional-changelog-conventionalcommits/writer-opts.js +++ b/packages/conventional-changelog-conventionalcommits/writer-opts.js @@ -88,7 +88,7 @@ function getWriterOpts (config) { } if (typeof commit.hash === `string`) { - commit.hash = commit.hash.substring(0, 7) + commit.shortHash = commit.hash.substring(0, 7) } if (typeof commit.subject === `string`) { diff --git a/packages/conventional-changelog-ember/writer-opts.js b/packages/conventional-changelog-ember/writer-opts.js index 9d53d8153..9ee587930 100644 --- a/packages/conventional-changelog-ember/writer-opts.js +++ b/packages/conventional-changelog-ember/writer-opts.js @@ -41,7 +41,7 @@ function getWriterOpts () { } if (typeof commit.hash === `string`) { - commit.hash = commit.hash.substring(0, 7) + commit.shortHash = commit.hash.substring(0, 7) } return commit diff --git a/packages/conventional-changelog-jquery/templates/commit.hbs b/packages/conventional-changelog-jquery/templates/commit.hbs index 09dcb11dc..aa51ac9ab 100644 --- a/packages/conventional-changelog-jquery/templates/commit.hbs +++ b/packages/conventional-changelog-jquery/templates/commit.hbs @@ -6,7 +6,7 @@ {{~!-- commit link --}} {{~#if @root.linkReferences~}} - ([{{hash}}]( + ([{{shortHash}}]( {{~#if @root.host}} {{~@root.host}}/ {{~/if}} @@ -15,7 +15,7 @@ {{~/if}} {{~@root.repository}}/{{@root.commit}}/{{hash}})) {{~else}} - {{~hash}} + {{~shortHash}} {{~/if}} {{~!-- commit references --}} diff --git a/packages/conventional-changelog-jquery/writer-opts.js b/packages/conventional-changelog-jquery/writer-opts.js index 7c5ff5983..ecd9de5af 100644 --- a/packages/conventional-changelog-jquery/writer-opts.js +++ b/packages/conventional-changelog-jquery/writer-opts.js @@ -27,7 +27,7 @@ function getWriterOpts () { } if (typeof commit.hash === `string`) { - commit.hash = commit.hash.substring(0, 7) + commit.shortHash = commit.hash.substring(0, 7) } commit.references.forEach(function (reference) { diff --git a/packages/conventional-changelog-jshint/templates/commit.hbs b/packages/conventional-changelog-jshint/templates/commit.hbs index 5cc5b5490..91f8e79da 100644 --- a/packages/conventional-changelog-jshint/templates/commit.hbs +++ b/packages/conventional-changelog-jshint/templates/commit.hbs @@ -1,5 +1,5 @@ * {{#if shortDesc}}{{shortDesc}}{{else}}{{header}}{{/if}} -{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{hash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{hash~}}{{/if}} +{{~!-- commit hash --}} {{#if @root.linkReferences}}([{{shortHash}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/{{@root.commit}}/{{hash}})){{else}}{{shortHash~}}{{/if}} {{~!-- commit references --}}{{#if references}}, closes{{~#each references}} {{#if @root.linkReferences}}[{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}]({{#if @root.host}}{{@root.host}}/{{/if}}{{#if this.repository}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}{{else}}{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}{{/if}}/{{@root.issue}}/{{this.issue}}){{else}}{{#if this.owner}}{{this.owner}}/{{/if}}{{this.repository}}#{{this.issue}}{{/if}}{{/each}}{{/if}}