fix: 🐛 修复官网更新日志的版本链接及 issue 链接异常的问题 (#10329)

Co-authored-by: cklwblove <lwbhtml@163.coom>
This commit is contained in:
文博
2022-02-25 14:08:44 +08:00
committed by GitHub
parent 641088c0fc
commit 15a77eec13
2 changed files with 39 additions and 3 deletions
@@ -5,7 +5,31 @@
{{~header}}
{{~/if}}
{{#if references~}}
{{~#each references}} [{{~this.repository}}#{{this.issue}}]({{~@root.repoUrl}}/{{~@root.issue}}/{{this.issue}}){{/each}}
{{~else}} [{{shortHash}}]({{~@root.repoUrl}}/{{~@root.commit}}/{{hash}})
{{~#each references}} [{{~this.repository}}#{{this.issue}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}
/{{~@root.issue}}/{{this.issue}}){{/each}}
{{~else}} [{{shortHash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}
/{{~@root.commit}}/{{hash}})
{{~/if}}