Skip to content

Commit

Permalink
chore(release): add template and sv4git config
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed May 18, 2023
1 parent 014913f commit adc6be3
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .sv4git.yml
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 8 additions & 0 deletions .sv4git/templates/releasenotes-md.tpl
Original file line number Diff line number Diff line change
@@ -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}}
7 changes: 7 additions & 0 deletions .sv4git/templates/rn-md-section-commits.tpl
Original file line number Diff line number Diff line change
@@ -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}}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-eth
Submodule nim-eth updated 67 files
+82 −0 .appveyor.yml
+5 −5 .github/workflows/ci.yml
+49 −0 .travis.yml
+9 −3 eth.nimble
+5 −2 eth/common/eth_hash.nim
+8 −5 eth/common/eth_types.nim
+1 −7 eth/common/eth_types_json_serialization.nim
+4 −9 eth/common/eth_types_rlp.nim
+7 −3 eth/db/kvstore.nim
+6 −2 eth/db/kvstore_sqlite3.nim
+2 −3 eth/keyfile/keyfile.nim
+1 −1 eth/keyfile/uuid.nim
+15 −59 eth/keys.nim
+9 −7 eth/net/nat.nim
+2 −2 eth/net/utils.nim
+5 −5 eth/p2p.nim
+7 −7 eth/p2p/auth.nim
+14 −14 eth/p2p/discovery.nim
+3 −3 eth/p2p/discoveryv5/encoding.nim
+5 −5 eth/p2p/discoveryv5/enr.nim
+1 −12 eth/p2p/discoveryv5/hkdf.nim
+2 −2 eth/p2p/discoveryv5/ip_vote.nim
+2 −10 eth/p2p/discoveryv5/lru.nim
+2 −2 eth/p2p/discoveryv5/messages.nim
+5 −5 eth/p2p/discoveryv5/messages_encoding.nim
+2 −2 eth/p2p/discoveryv5/node.nim
+1 −1 eth/p2p/discoveryv5/nodes_verification.nim
+4 −4 eth/p2p/discoveryv5/protocol.nim
+0 −10 eth/p2p/discoveryv5/random2.nim
+5 −8 eth/p2p/discoveryv5/routing_table.nim
+2 −2 eth/p2p/discoveryv5/sessions.nim
+7 −7 eth/p2p/ecies.nim
+2 −6 eth/p2p/enode.nim
+17 −25 eth/p2p/kademlia.nim
+2 −2 eth/p2p/p2p_backends_helpers.nim
+1 −1 eth/p2p/p2p_protocol_dsl.nim
+21 −65 eth/p2p/peer_pool.nim
+11 −18 eth/p2p/private/p2p_types.nim
+90 −191 eth/p2p/rlpx.nim
+2 −2 eth/p2p/rlpxcrypt.nim
+1 −1 eth/trie/binaries.nim
+6 −23 eth/trie/db.nim
+104 −260 eth/trie/hexary.nim
+2 −2 eth/trie/hexary_proof_verification.nim
+2 −2 eth/utp/clock_drift_calculator.nim
+2 −2 eth/utp/delay_histogram.nim
+12 −17 eth/utp/growable_buffer.nim
+2 −2 eth/utp/ledbat_congestion_control.nim
+53 −54 eth/utp/packets.nim
+5 −8 eth/utp/utp.nim
+2 −2 eth/utp/utp_discv5_protocol.nim
+5 −7 eth/utp/utp_protocol.nim
+20 −25 eth/utp/utp_router.nim
+100 −121 eth/utp/utp_socket.nim
+2 −2 eth/utp/utp_utils.nim
+1 −5 tests/fuzzing/rlpx/thunk.nim
+5 −5 tests/keys/test_keys.nim
+4 −4 tests/p2p/test_discoveryv5.nim
+1 −1 tests/p2p/test_discoveryv5_encoding.nim
+4 −6 tests/p2p/test_protocol_handlers.nim
+1 −4 tests/p2p/test_rlpx_thunk.nim
+3 −28 tests/rlp/test_api_usage.nim
+1 −1 tests/trie/test_branches_utils.nim
+2 −2 tests/trie/test_hexary_proof.nim
+5 −5 tests/utp/test_buffer.nim
+64 −56 tests/utp/test_packets.nim
+1 −1 tests/utp/test_utils.nim

0 comments on commit adc6be3

Please sign in to comment.