Merge pull request #109 from owncloud/fix-changelog
Fix Changelog template
This commit is contained in:
+2
-2
@@ -566,7 +566,7 @@ def changelog(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'diff',
|
'name': 'diff',
|
||||||
'image': 'webhippie/golang:1.13',
|
'image': 'owncloud/alpine:latest',
|
||||||
'pull': 'always',
|
'pull': 'always',
|
||||||
'commands': [
|
'commands': [
|
||||||
'git diff',
|
'git diff',
|
||||||
@@ -574,7 +574,7 @@ def changelog(ctx):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'output',
|
'name': 'output',
|
||||||
'image': 'webhippie/golang:1.13',
|
'image': 'owncloud/alpine:latest',
|
||||||
'pull': 'always',
|
'pull': 'always',
|
||||||
'commands': [
|
'commands': [
|
||||||
'cat CHANGELOG.md',
|
'cat CHANGELOG.md',
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ sync:
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
go clean -i ./...
|
go clean -i ./...
|
||||||
rm -rf $(BIN) $(DIST)
|
rm -rf $(BIN) $(DIST) $(HUGO)
|
||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{{ $allVersions := . }}
|
{{ $allVersions := . }}
|
||||||
{{- range $index, $changes := . }}{{ with $changes -}}
|
{{- range $index, $changes := . }}{{ with $changes -}}
|
||||||
|
{{ if gt (len $allVersions) 1 -}}
|
||||||
# Changelog for [{{ .Version }}] ({{ .Date }})
|
# 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 */ -}}
|
{{/* creating version compare links */ -}}
|
||||||
{{ $next := add1 $index -}}
|
{{ $next := add1 $index -}}
|
||||||
{{ if ne (len $allVersions) $next -}}
|
{{ 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 }}
|
[{{ .Version }}]: https://github.com/owncloud/ocis-reva/compare/6702be7f9045a382d40691a9bcd04f572203e9ed...v{{ .Version }}
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- end -}}
|
{{ else -}}
|
||||||
|
# Changes in {{ .Version }}
|
||||||
|
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
{{ range $entry := .Entries }}{{ with $entry }}
|
{{ range $entry := .Entries }}{{ with $entry }}
|
||||||
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
|
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
|
||||||
{{- end }}{{ end }}
|
{{- end }}{{ end }}
|
||||||
|
|
||||||
## Details
|
## Details
|
||||||
{{ range $entry := .Entries }}{{ with $entry }}
|
{{ range $entry := .Entries }}{{ with $entry }}
|
||||||
* {{ .Type }} #{{ .PrimaryID }}: {{ .Title }}
|
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
|
||||||
{{ range $par := .Paragraphs }}
|
{{ range $par := .Paragraphs }}
|
||||||
{{ wrapIndent $par 80 3 }}
|
{{ wrapIndent $par 80 3 }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user