diff --git a/.sv4git.yml b/.sv4git.yml new file mode 100644 index 0000000000..325d9204a4 --- /dev/null +++ b/.sv4git.yml @@ -0,0 +1,21 @@ +version: "1.1" #config version + +tag: + pattern: "v%d.%d.%d" + +release-notes: + sections: # Array with each section of release note. Check template section for more information. + - name: Features # Name used on section. + section-type: commits # Type of the section, supported types: commits, breaking-changes. + commit-types: [feat] # Commit types for commit section-type, one commit type cannot be in more than one section. + - name: Bug Fixes + section-type: commits + commit-types: [fix, bug] + - name: Changes + section-type: commits + commit-types: [chore, docs, build, refactor, docker] + +commit-message: + + issue: + regex: '#[0-9]+' # Regex for issue id. \ No newline at end of file diff --git a/.sv4git/templates/releasenotes-md.tpl b/.sv4git/templates/releasenotes-md.tpl new file mode 100644 index 0000000000..a513e692bb --- /dev/null +++ b/.sv4git/templates/releasenotes-md.tpl @@ -0,0 +1,8 @@ +## {{if .Release}}{{.Release}}{{end}}{{if and (not .Date.IsZero) .Release}} ({{end}}{{timefmt .Date "2006-01-02"}}{{if and (not .Date.IsZero) .Release}}){{end}} +{{- range $section := .Sections }} +{{- if (eq $section.SectionType "commits") }} +{{- template "rn-md-section-commits.tpl" $section }} +{{- else if (eq $section.SectionType "breaking-changes")}} +{{- template "rn-md-section-breaking-changes.tpl" $section }} +{{- end}} +{{- end}} diff --git a/.sv4git/templates/rn-md-section-commits.tpl b/.sv4git/templates/rn-md-section-commits.tpl new file mode 100644 index 0000000000..2732fcd54a --- /dev/null +++ b/.sv4git/templates/rn-md-section-commits.tpl @@ -0,0 +1,7 @@ +{{- if .}}{{- if ne .SectionName ""}} + +### {{.SectionName}} +{{range $k,$v := .Items}} +- {{if $v.Message.Scope}}**{{$v.Message.Scope}}:** {{end}}{{$v.Message.Description}} ([{{$v.Hash}}](https://github.com/waku-org/nwaku/commit/{{$v.Hash}})){{if $v.Message.Metadata.issue}} ([https://github.com/waku-org/nwaku/issues/{{$v.Message.Metadata.issue}}]({{$v.Message.Metadata.issue}})){{end}} +{{- end}} +{{- end}}{{- end}} \ No newline at end of file diff --git a/Makefile b/Makefile index 36fcc863ea..735ef771d1 100644 --- a/Makefile +++ b/Makefile @@ -319,7 +319,7 @@ release-notes: --rm \ -v $${PWD}:/opt/sv4git/repo:z \ -u $(shell id -u) \ - quay.io/vpavlin0/sv4git:latest \ + docker.io/wakuorg/sv4git:latest \ release-notes |\ sed -E 's@#([0-9]+)@[#\1](https://github.com/waku-org/nwaku/issues/\1)@g' # I could not get the tool to replace issue ids with links, so using sed for now, diff --git a/vendor/nim-eth b/vendor/nim-eth index 285da12bf3..72c9858927 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit 285da12bf318a2e21182dc2453a4a30c58f73067 +Subproject commit 72c98589278aec949c13435d9bcacdb306faa5a8 diff --git a/vendor/nim-secp256k1 b/vendor/nim-secp256k1 index 5fd8135783..4c41c5029f 160000 --- a/vendor/nim-secp256k1 +++ b/vendor/nim-secp256k1 @@ -1 +1 @@ -Subproject commit 5fd81357839d57ef38fb17647bd5e31dfa9f55b8 +Subproject commit 4c41c5029ffc73b732233f06018cd52f3ed47dce diff --git a/vendor/zerokit b/vendor/zerokit index c2d386cb74..584c2cf4c0 160000 --- a/vendor/zerokit +++ b/vendor/zerokit @@ -1 +1 @@ -Subproject commit c2d386cb749f551541bb34c4386a3849485356f9 +Subproject commit 584c2cf4c000b391ca6b415c09d8399fde329e5c