Skip to content

Commit

Permalink
Merge 8dcb695 into b63a5ff
Browse files Browse the repository at this point in the history
  • Loading branch information
tommywo committed Sep 10, 2019
2 parents b63a5ff + 8dcb695 commit cebee14
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/conventional-changelog-angular/templates/commit.hbs
Expand Up @@ -6,7 +6,7 @@
{{~/if}}

{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{hash}}](
([{{shortHash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
Expand All @@ -20,7 +20,7 @@
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else}}
{{~hash}}
{{~shortHash}}
{{~/if}}

{{~!-- commit references --}}
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-changelog-angular/writer-opts.js
Expand Up @@ -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`) {
Expand Down
2 changes: 1 addition & 1 deletion 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}}
2 changes: 1 addition & 1 deletion packages/conventional-changelog-atom/writer-opts.js
Expand Up @@ -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`) {
Expand Down
@@ -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}}
2 changes: 1 addition & 1 deletion packages/conventional-changelog-codemirror/writer-opts.js
Expand Up @@ -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
Expand Down
Expand Up @@ -6,9 +6,9 @@
{{~/if}}

{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{hash}}]({{commitUrlFormat}}))
([{{shortHash}}]({{commitUrlFormat}}))
{{~else}}
{{~hash}}
{{~shortHash}}
{{~/if}}

{{~!-- commit references --}}
Expand Down
Expand Up @@ -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`) {
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-changelog-ember/writer-opts.js
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/conventional-changelog-jquery/templates/commit.hbs
Expand Up @@ -6,7 +6,7 @@

{{~!-- commit link --}}
{{~#if @root.linkReferences~}}
([{{hash}}](
([{{shortHash}}](
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
Expand All @@ -15,7 +15,7 @@
{{~/if}}
{{~@root.repository}}/{{@root.commit}}/{{hash}}))
{{~else}}
{{~hash}}
{{~shortHash}}
{{~/if}}

{{~!-- commit references --}}
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-changelog-jquery/writer-opts.js
Expand Up @@ -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) {
Expand Down
@@ -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}}

0 comments on commit cebee14

Please sign in to comment.