Add link to git commit for unstable changelog too (#2078)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
844dd6f8ae
commit
4ff9a851e6
3 changed files with 22 additions and 3 deletions
|
@ -31,9 +31,17 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<table class="release-info">
|
||||
{{ if ne $version "unstable" -}}
|
||||
{{ $commitLink := printf "https://github.com/matrix-org/matrix-spec/tree/%s" $version -}}
|
||||
{{ $rev := $version }}
|
||||
{{ if eq $version "unstable" -}}
|
||||
{{- /*
|
||||
Extract the git SHA from the frontmatter of the changelog, where
|
||||
it was stashed by `generate-changelog.sh`.
|
||||
*/ -}}
|
||||
{{ $rev = .Params.commit -}}
|
||||
{{ end -}}
|
||||
{{ $commitLink := printf "https://github.com/matrix-org/matrix-spec/tree/%s" $rev -}}
|
||||
<tr><th>Git commit</th><td><a href="{{ $commitLink }}">{{ $commitLink }}</a></td>
|
||||
{{ if ne $version "unstable" }}
|
||||
<tr><th>Release date</th><td>{{ .Date | time.Format ":date_long" }}</td>
|
||||
{{ end -}}
|
||||
{{ $checklist := .OutputFormats.Get "checklist" -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue