From 1bae2fd105721e4df9a342c1e58a2d0d6033c41a Mon Sep 17 00:00:00 2001 From: "Y.Horie" Date: Tue, 6 Sep 2022 22:04:19 +0900 Subject: [PATCH] chore: Change module version. (#241) * chore: Change module version. Co-authored-by: Ben Kochie Co-authored-by: YoungJoo.Kim --- README.md | 2 ++ src/ngx_http_vhost_traffic_status_module.h | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 574e77a..90cbb64 100644 --- a/README.md +++ b/README.md @@ -1820,6 +1820,8 @@ To cut a release, create a changelog entry PR with [git-chglog](https://github.c git checkout -b "cut-${version}" git-chglog -o CHANGELOG.md --next-tag "${version}" git add CHANGELOG.md + sed -i "s/NGX_HTTP_VTS_MODULE_VERSION \".*/NGX_HTTP_VTS_MODULE_VERSION \"${version}\"" src/ngx_http_vhost_traffic_status_module.h + git add src/ngx_http_vhost_traffic_status_module.h 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). diff --git a/src/ngx_http_vhost_traffic_status_module.h b/src/ngx_http_vhost_traffic_status_module.h index ec42261..757e979 100644 --- a/src/ngx_http_vhost_traffic_status_module.h +++ b/src/ngx_http_vhost_traffic_status_module.h @@ -16,7 +16,15 @@ #include "ngx_http_vhost_traffic_status_string.h" #include "ngx_http_vhost_traffic_status_node.h" -#define NGX_HTTP_VTS_MODULE_VERSION "0.1.19.dev.91bdb14" +/* + * This version should follow the stable releases. + * The format should follow https://semver.org/ + * + * If a change has some important impact, include the commit short hash here. + * I.E "v0.2.0+h0a1s2h" + * + */ +#define NGX_HTTP_VTS_MODULE_VERSION "v0.2.0" #define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_NO 0 #define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_UA 1