From b740132bd188855bab3a8b489c68c9112ced04a5 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Mon, 5 Sep 2022 10:15:29 +0200 Subject: [PATCH] Release v0.2.0 Release [v0.2.0] - 2022-09-05 ** Bugfix - fixed for PR[#238](https://github.com/vozlt/nginx-module-vts/issues/238) - fixed for PR[#238](https://github.com/vozlt/nginx-module-vts/issues/238) - fixed issues/204 that syntax error has occured - rollback to 549cc4d - fixed issues/137, issues/98 that maxSize in cacheZones is displayed incorrectly - fixed issues/174 that XSS vulnerability in the html page Feature: added moduleVersion field in format/json - added escape strings for filter names in JSON - fixed the sum value of histogram in upstream metrics - fixed to display all A records of server without zone directive in the upstream block. ** Chore - Use git-chglog ** Comment - added moduleVersion - added additional information about cacheZones - added tested versions - added a diagram for the order of module directives ** Compatibility - fixed ngx_http_vhost_traffic_status_display_get_upstream_nelts() to calculate all A records of server. ** Docs - Fix README ** Docs - fix simple typo, destory -> destroy ** Fix - limit the r->uri search scope to avoid overflow ** Prometheus - fix nginx_vts_filter_requests_total labels - remove request "total" metrics ** Refactor - changed version - changed spacing - changed spacing - changed if statement from merged pull/145 ** Test - describe how to test and fix failed test case Signed-off-by: SuperQ --- .chglog/RELNOTES.tmpl | 20 ++++++++++++++++++++ CHANGELOG.md | 8 +++++++- README.md | 18 +++++++++++++++++- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100755 .chglog/RELNOTES.tmpl diff --git a/.chglog/RELNOTES.tmpl b/.chglog/RELNOTES.tmpl new file mode 100755 index 0000000..627fa76 --- /dev/null +++ b/.chglog/RELNOTES.tmpl @@ -0,0 +1,20 @@ +{{ range .Versions -}} +Release {{ .Tag.Name}} + +Release {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} +{{ range .CommitGroups -}} +** {{ .Title }} +{{ range .Commits -}} +- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} +{{ end }} +{{ end -}} + +{{- if .NoteGroups -}} +{{ range .NoteGroups -}} +** {{ .Title }} +{{ range .Notes }} +{{ .Body }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c308b1..bfaaf85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## [Unreleased] + +## [v0.2.0] - 2022-09-05 ### Bugfix - fixed for PR[#238](https://github.com/vozlt/nginx-module-vts/issues/238) - fixed for PR[#238](https://github.com/vozlt/nginx-module-vts/issues/238) @@ -12,6 +14,9 @@ - fixed the sum value of histogram in upstream metrics - fixed to display all A records of server without zone directive in the upstream block. +### Chore +- Use git-chglog + ### Comment - added moduleVersion - added additional information about cacheZones @@ -300,7 +305,8 @@ - added type casting(ngx_atomic_t) in the ngx_vhost_traffic_status_node_init() and ngx_vhost_traffic_status_node_set() -[Unreleased]: https://github.com/vozlt/nginx-module-vts/compare/v0.1.18...HEAD +[Unreleased]: https://github.com/vozlt/nginx-module-vts/compare/v0.2.0...HEAD +[v0.2.0]: https://github.com/vozlt/nginx-module-vts/compare/v0.1.18...v0.2.0 [v0.1.18]: https://github.com/vozlt/nginx-module-vts/compare/v0.1.17...v0.1.18 [v0.1.17]: https://github.com/vozlt/nginx-module-vts/compare/v0.1.16...v0.1.17 [v0.1.16]: https://github.com/vozlt/nginx-module-vts/compare/v0.1.15...v0.1.16 diff --git a/README.md b/README.md index c3c06dc..574e77a 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,17 @@ Table of Contents * [vhost_traffic_status_histogram_buckets](#vhost_traffic_status_histogram_buckets) * [vhost_traffic_status_bypass_limit](#vhost_traffic_status_bypass_limit) * [vhost_traffic_status_bypass_stats](#vhost_traffic_status_bypass_stats) +* [Releases](#releases) * [See Also](#see-also) * [TODO](#todo) * [Donation](#donation) * [Author](#author) ## Version -This document describes nginx-module-vts `v0.1.18` released on 22 Jun 2018. + +![GitHub Release](https://img.shields.io/github/v/release/vozlt/nginx-module-vts?display_name=tag&sort=semver) + +See the [GitHub Releases](https://github.com/vozlt/nginx-module-vts/releases) for the latest tagged release. ## Test Run `sudo prove -r t` after you have installed this module. The `sudo` is required because @@ -1808,6 +1812,18 @@ http { } ``` +## Releases + +To cut a release, create a changelog entry PR with [git-chglog](https://github.com/git-chglog/git-chglog) + + version="v0.2.0" + git checkout -b "cut-${version}" + git-chglog -o CHANGELOG.md --next-tag "${version}" + git add CHANGELOG.md + git-chglog -t .chglog/RELNOTES.tmpl --next-tag "${version}" "${version}" | git commit -F- + +After the PR is merged, create the new tag and release on the [GitHub Releases](https://github.com/vozlt/nginx-module-vts/releases). + ## See Also * Stream traffic status * [nginx-module-sts](https://github.com/vozlt/nginx-module-sts)