Skip to content

Commit 1bae2fd

Browse files
u5surfSuperQvozlt
authored
chore: Change module version. (#241)
* chore: Change module version. Co-authored-by: Ben Kochie <[email protected]> Co-authored-by: YoungJoo.Kim <[email protected]>
1 parent 6dadfc8 commit 1bae2fd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,8 @@ To cut a release, create a changelog entry PR with [git-chglog](https://github.c
18201820
git checkout -b "cut-${version}"
18211821
git-chglog -o CHANGELOG.md --next-tag "${version}"
18221822
git add CHANGELOG.md
1823+
sed -i "s/NGX_HTTP_VTS_MODULE_VERSION \".*/NGX_HTTP_VTS_MODULE_VERSION \"${version}\"" src/ngx_http_vhost_traffic_status_module.h
1824+
git add src/ngx_http_vhost_traffic_status_module.h
18231825
git-chglog -t .chglog/RELNOTES.tmpl --next-tag "${version}" "${version}" | git commit -F-
18241826

18251827
After the PR is merged, create the new tag and release on the [GitHub Releases](https://github.com/vozlt/nginx-module-vts/releases).

src/ngx_http_vhost_traffic_status_module.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
#include "ngx_http_vhost_traffic_status_string.h"
1717
#include "ngx_http_vhost_traffic_status_node.h"
1818

19-
#define NGX_HTTP_VTS_MODULE_VERSION "0.1.19.dev.91bdb14"
19+
/*
20+
* This version should follow the stable releases.
21+
* The format should follow https://semver.org/
22+
*
23+
* If a change has some important impact, include the commit short hash here.
24+
* I.E "v0.2.0+h0a1s2h"
25+
*
26+
*/
27+
#define NGX_HTTP_VTS_MODULE_VERSION "v0.2.0"
2028

2129
#define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_NO 0
2230
#define NGX_HTTP_VHOST_TRAFFIC_STATUS_UPSTREAM_UA 1

0 commit comments

Comments
 (0)