We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a189e9 commit 00d4d30Copy full SHA for 00d4d30
fastlane/lanes/release.rb
@@ -212,6 +212,8 @@
212
213
# Parse the provided version into an AppVersion object
214
parsed_version = VERSION_FORMATTER.parse(new_version)
215
+ # Validate that this is a hotfix version (must have a patch component > 0)
216
+ UI.user_error!("Invalid hotfix version '#{new_version}'. Must include a patch number.") unless parsed_version.patch.to_i.positive?
217
previous_version = VERSION_FORMATTER.release_version(VERSION_CALCULATOR.previous_patch_version(version: parsed_version))
218
previous_release_branch = "release/#{previous_version}"
219
0 commit comments