@@ -50,7 +50,9 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
50
50
logger = logging.getLogger(__name__)
51
51
52
52
53
- def calculate_version(commit_type: CommitType, use_news_files: bool) -> Tuple[bool, Optional[str], Dict[str, str]]:
53
+ def calculate_version(
54
+ commit_type: CommitType, use_news_files: bool, record_state: bool
55
+ ) -> Tuple[bool, Optional[str], Dict[str, str]]:
54
56
"""Calculates the version for the release.
55
57
56
58
eg. "0.1.2"
@@ -77,6 +79,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
77
79
enable_file_triggers=enable_file_triggers,
78
80
commit_count_as=bump,
79
81
config_path=project_config_path,
82
+ dry_run=not record_state,
80
83
)
81
84
# Autoversion second returned value is not actually the new version
82
85
# There seem to be a bug in autoversion.
@@ -138,7 +141,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
138
141
< h2 class ="section-title " id ="header-functions "> Functions</ h2 >
139
142
< dl >
140
143
< dt id ="continuous_delivery_scripts.utils.versioning.calculate_version "> < code class ="name flex ">
141
- < span > def < span class ="ident "> calculate_version</ span > </ span > (< span > commit_type: < a title ="continuous_delivery_scripts.utils.definitions.CommitType " href ="definitions.html#continuous_delivery_scripts.utils.definitions.CommitType "> CommitType</ a > , use_news_files: bool) ‑> Tuple[bool, Optional[str], Dict[str, str]]</ span >
144
+ < span > def < span class ="ident "> calculate_version</ span > </ span > (< span > commit_type: < a title ="continuous_delivery_scripts.utils.definitions.CommitType " href ="definitions.html#continuous_delivery_scripts.utils.definitions.CommitType "> CommitType</ a > , use_news_files: bool, record_state: bool ) ‑> Tuple[bool, Optional[str], Dict[str, str]]</ span >
142
145
</ code > </ dt >
143
146
< dd >
144
147
< div class ="desc "> < p > Calculates the version for the release.</ p >
@@ -158,7 +161,9 @@ <h2 id="returns">Returns</h2>
158
161
< summary >
159
162
< span > Expand source code</ span >
160
163
</ summary >
161
- < pre > < code class ="python "> def calculate_version(commit_type: CommitType, use_news_files: bool) -> Tuple[bool, Optional[str], Dict[str, str]]:
164
+ < pre > < code class ="python "> def calculate_version(
165
+ commit_type: CommitType, use_news_files: bool, record_state: bool
166
+ ) -> Tuple[bool, Optional[str], Dict[str, str]]:
162
167
"""Calculates the version for the release.
163
168
164
169
eg. "0.1.2"
@@ -185,6 +190,7 @@ <h2 id="returns">Returns</h2>
185
190
enable_file_triggers=enable_file_triggers,
186
191
commit_count_as=bump,
187
192
config_path=project_config_path,
193
+ dry_run=not record_state,
188
194
)
189
195
# Autoversion second returned value is not actually the new version
190
196
# There seem to be a bug in autoversion.
0 commit comments