Add a make target to create a changelog in csv format

This commit is contained in:
Klaas Freitag
2024-08-07 17:14:59 +02:00
committed by Ralf Haferkamp
parent cd912a56c1
commit 6f7f3d0706
2 changed files with 13 additions and 0 deletions

View File

@@ -290,6 +290,11 @@ endif
mkdir -p ocis/dist
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
.PHONY: changelog-csv
changelog-csv: $(CALENS)
mkdir -p ocis/dist
$(CALENS) -t changelog/changelog-csv.tmpl -o ocis/dist/changelog.csv
.PHONY: govulncheck
govulncheck: $(GOVULNCHECK)
$(GOVULNCHECK) ./...

View File

@@ -0,0 +1,8 @@
## Release, Date, Type, Title, Primary ID, Primary URL
{{ range . -}}
{{ $v := .Version -}}
{{ $d := .Date -}}
{{ range $entry := .Entries -}}
{{ $v }},{{ $d }},{{ .Type }},'{{ .Title }}',{{ .PrimaryID }},{{ .PrimaryURL }}
{{ end -}}
{{ end -}}