bump2version icon indicating copy to clipboard operation
bump2version copied to clipboard

Part condition for files

Open rsundqvist opened this issue 3 years ago • 0 comments

Looking at the source I don't think this is possible, but I'll ask anyway. Is it possible to make trigger of search-and-replace conditional on the part being bumped? For example, I would not want a changelog to be updated for dev releases.

Maybe something like:

[bumpversion]
current_version = 0.1.0.dev0
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+)(\.dev(?P<dev>\d+))?)?

[bumpversion:file:CHANGELOG.md]
ignore_parts =
	dev
serialize = {major}.{minor}.{patch}

rsundqvist avatar Jul 31 '22 11:07 rsundqvist