From 18aa8201e7e61ffbadd2d0f2eb38b8bf5f1098b8 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Wed, 21 Sep 2022 11:47:21 -0500 Subject: [PATCH] Updated version replacement --- Makefile | 2 +- setup.cfg | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 487f58d..c802084 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ do-release: git fetch -p --all; \ generate-changelog; \ git add CODEOWNERS; \ - export BRANCH_NAME=$(SHORT_BRANCH_NAME);bumpversion $(BUMPVERSION_OPTS) $(RELEASE_KIND) --allow-dirty --dry-run; \ + export BRANCH_NAME=$(SHORT_BRANCH_NAME);bumpversion $(BUMPVERSION_OPTS) $(RELEASE_KIND) --allow-dirty; \ git push origin $(BRANCH_NAME); \ git push --tags; diff --git a/setup.cfg b/setup.cfg index 70fb57f..b412e9a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -55,5 +55,9 @@ message = Version updated from {current_version} to {new_version} [bumpversion:file:categories/__init__.py] -[bumpversion:file:CHANGELOG.md] +[bumpversion:file(version heading):CHANGELOG.md] search = Unreleased + +[bumpversion:file(diff link):CHANGELOG.md] +search = {current_version}...HEAD +replace = {current_version}...{new_version}