Skip to content

Commit 3101790

Browse files
committed
modify development version to comprise build count
1 parent a8e4911 commit 3101790

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ pre-commit = "*"
2323
allow_prereleases = true
2424

2525
[packages]
26-
continuous-delivery-scripts = {path = "."}
26+
continuous-delivery-scripts = {editable = true, path = "."}

continuous_delivery_scripts/generate_news.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ def _update_version_string(
8585
version_elements: version elements
8686
"""
8787
if commit_type == CommitType.DEVELOPMENT:
88-
return "%s-%s+%s" % (
88+
return "%s-%s.%s+%s" % (
8989
new_version,
9090
auto_version_tool.config.BUILD_TOKEN,
91+
version_elements.get(auto_version_tool.Constants.COMMIT_COUNT_FIELD),
9192
version_elements.get(auto_version_tool.Constants.COMMIT_FIELD),
9293
)
9394
return new_version

0 commit comments

Comments
 (0)