From 4377a1f3aa6d200d9fff45382096af76aadd6dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Sat, 28 Dec 2019 21:31:02 +0800 Subject: [PATCH] fix(cli): remove comma when generate changelog --- packages/vant-cli/src/commands/changelog.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vant-cli/src/commands/changelog.ts b/packages/vant-cli/src/commands/changelog.ts index 1f32980f7..eff1e6760 100644 --- a/packages/vant-cli/src/commands/changelog.ts +++ b/packages/vant-cli/src/commands/changelog.ts @@ -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}} `;