Skip to content

Commit

Permalink
chore: Change module version. (#241)
Browse files Browse the repository at this point in the history
* chore: Change module version.

Co-authored-by: Ben Kochie <superq@gmail.com>
Co-authored-by: YoungJoo.Kim <vozlt.x+github@gmail.com>
  • Loading branch information
3 people authored Sep 6, 2022
1 parent 6dadfc8 commit 1bae2fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
10 changes: 9 additions & 1 deletion src/ngx_http_vhost_traffic_status_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bae2fd

Please sign in to comment.