pilot/lib/pilot/build_manager.rb in fastlane-2.81.0.beta.20180205010003 vs pilot/lib/pilot/build_manager.rb in fastlane-2.81.0.beta.20180206010002

- old
+ new

@@ -13,9 +13,17 @@ options[:changelog] = self.class.truncate_changelog(options[:changelog]) if options[:changelog] UI.user_error!("No ipa file given") unless config[:ipa] + if options[:changelog].nil? and options[:distribute_external] == true + if UI.interactive? + options[:changelog] = UI.input("No changelog provided for new build. Please provide a changelog. You can also provide a changelog using the `changelog` option") + else + UI.user_error!("No changelog provided for new build. Please either disable `distribute_external` or provide a changelog using the `changelog` option") + end + end + UI.success("Ready to upload new build to TestFlight (App: #{app.apple_id})...") dir = Dir.mktmpdir platform = fetch_app_platform