fix(cli): remove comma when generate changelog

This commit is contained in:
陈嘉涵 2019-12-28 21:31:02 +08:00
parent a196fa7a6f
commit 4377a1f3aa

View File

@ -30,9 +30,9 @@ const commitPartial = `*{{#if scope}} {{scope}}:
{{~else}}
{{~header}}
{{~/if}}
{{#if references~}},
{{~#each references}} [{{~this.repository}}#{{this.issue}}]({{~@root.repoUrl}}/{{~@root.issue}}/{{this.issue}}) {{/each}}
{{~else}}, [{{shortHash}}]({{~@root.repoUrl}}/{{~@root.commit}}/{{hash}})
{{#if references~}}
{{~#each references}} [{{~this.repository}}#{{this.issue}}]({{~@root.repoUrl}}/{{~@root.issue}}/{{this.issue}}){{/each}}
{{~else}} [{{shortHash}}]({{~@root.repoUrl}}/{{~@root.commit}}/{{hash}})
{{~/if}}
`;