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 cad9603 commit 4d48ddaCopy full SHA for 4d48dda
fastlane/lanes/release.rb
@@ -277,6 +277,8 @@
277
278
# Parse the provided version into an AppVersion object
279
parsed_version = VERSION_FORMATTER.parse(new_version)
280
+ # Validate that this is a hotfix version (must have a patch component > 0)
281
+ UI.user_error!("Invalid hotfix version '#{new_version}'. Must include a patch number.") unless parsed_version.patch.to_i.positive?
282
previous_version = VERSION_FORMATTER.release_version(VERSION_CALCULATOR.previous_patch_version(version: parsed_version))
283
previous_release_branch = compute_release_branch_name(options: options, version: previous_version)
284
0 commit comments