@@ -50,7 +50,9 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
5050logger = logging.getLogger(__name__)
5151
5252
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]]:
5456 """Calculates the version for the release.
5557
5658 eg. "0.1.2"
@@ -77,6 +79,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
7779 enable_file_triggers=enable_file_triggers,
7880 commit_count_as=bump,
7981 config_path=project_config_path,
82+ dry_run=not record_state,
8083 )
8184 # Autoversion second returned value is not actually the new version
8285 # There seem to be a bug in autoversion.
@@ -138,7 +141,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
138141< h2 class ="section-title " id ="header-functions "> Functions</ h2 >
139142< dl >
140143< 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 >
142145</ code > </ dt >
143146< dd >
144147< div class ="desc "> < p > Calculates the version for the release.</ p >
@@ -158,7 +161,9 @@ <h2 id="returns">Returns</h2>
158161< summary >
159162< span > Expand source code</ span >
160163</ 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]]:
162167 """Calculates the version for the release.
163168
164169 eg. "0.1.2"
@@ -185,6 +190,7 @@ <h2 id="returns">Returns</h2>
185190 enable_file_triggers=enable_file_triggers,
186191 commit_count_as=bump,
187192 config_path=project_config_path,
193+ dry_run=not record_state,
188194 )
189195 # Autoversion second returned value is not actually the new version
190196 # There seem to be a bug in autoversion.
0 commit comments