mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-20 11:30:38 -06:00
Add a make target to create a changelog in csv format
This commit is contained in:
committed by
Ralf Haferkamp
parent
cd912a56c1
commit
6f7f3d0706
5
Makefile
5
Makefile
@@ -290,6 +290,11 @@ endif
|
|||||||
mkdir -p ocis/dist
|
mkdir -p ocis/dist
|
||||||
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
|
$(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
|
.PHONY: govulncheck
|
||||||
govulncheck: $(GOVULNCHECK)
|
govulncheck: $(GOVULNCHECK)
|
||||||
$(GOVULNCHECK) ./...
|
$(GOVULNCHECK) ./...
|
||||||
|
|||||||
8
changelog/changelog-csv.tmpl
Normal file
8
changelog/changelog-csv.tmpl
Normal 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 -}}
|
||||||
Reference in New Issue
Block a user