Merge pull request #109 from owncloud/fix-changelog

Fix Changelog template
This commit is contained in:
Michael Barz
2020-03-03 13:19:24 +01:00
committed by GitHub
3 changed files with 11 additions and 8 deletions

View File

@@ -566,7 +566,7 @@ def changelog(ctx):
},
{
'name': 'diff',
'image': 'webhippie/golang:1.13',
'image': 'owncloud/alpine:latest',
'pull': 'always',
'commands': [
'git diff',
@@ -574,7 +574,7 @@ def changelog(ctx):
},
{
'name': 'output',
'image': 'webhippie/golang:1.13',
'image': 'owncloud/alpine:latest',
'pull': 'always',
'commands': [
'cat CHANGELOG.md',

View File

@@ -58,7 +58,7 @@ sync:
.PHONY: clean
clean:
go clean -i ./...
rm -rf $(BIN) $(DIST)
rm -rf $(BIN) $(DIST) $(HUGO)
.PHONY: fmt
fmt:

View File

@@ -1,10 +1,10 @@
{{ $allVersions := . }}
{{- range $index, $changes := . }}{{ with $changes -}}
{{ if gt (len $allVersions) 1 -}}
# Changelog for [{{ .Version }}] ({{ .Date }})
The following sections list the changes for {{ .Version }}.
The following sections list the changes in ocis-reva {{ .Version }}.
{{ if gt (len $allVersions) 1 -}}
{{/* creating version compare links */ -}}
{{ $next := add1 $index -}}
{{ if ne (len $allVersions) $next -}}
@@ -23,16 +23,19 @@ The following sections list the changes for {{ .Version }}.
[{{ .Version }}]: https://github.com/owncloud/ocis-reva/compare/6702be7f9045a382d40691a9bcd04f572203e9ed...v{{ .Version }}
{{ end -}}
{{- end -}}
{{ else -}}
# Changes in {{ .Version }}
{{ end -}}
## Summary
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
{{- end }}{{ end }}
## Details
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
{{ range $par := .Paragraphs }}
{{ wrapIndent $par 80 3 }}
{{ end -}}