Skip to content

Commit ef759c0

Browse files
committed
Allow to read the Upcoming changelog
1 parent db5e4a3 commit ef759c0

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

lib/fastlane/plugin/stream_actions/actions/read_changelog.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.run(params)
77
changes = ''
88
changelog_lines = File.readlines(params[:changelog_path])
99
changelog_lines.each do |line|
10-
start_token = '# ['
10+
start_token = '# '
1111
if reading_changelog
1212
break if line.start_with?(start_token)
1313

lib/fastlane/plugin/stream_actions/actions/testflight_build.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def self.run(params)
4141

4242
changelog =
4343
if params[:use_changelog]
44-
other_action.read_changelog(version: params[:app_version], changelog_path: params[:changelog_path])
44+
version = params[:is_manual_upload] ? 'Upcoming' : params[:app_version]
45+
other_action.read_changelog(version: version, changelog_path: params[:changelog_path])
4546
else
4647
testflight_instructions(params)
4748
end
@@ -171,6 +172,12 @@ def self.available_options
171172
description: 'Build configuration',
172173
default_value: 'Release'
173174
),
175+
FastlaneCore::ConfigItem.new(
176+
key: :is_manual_upload,
177+
description: 'Treat this as a manual upload',
178+
is_string: false,
179+
default_value: false
180+
),
174181
FastlaneCore::ConfigItem.new(
175182
key: :use_changelog,
176183
description: 'Use the changelog as a testflight instructions',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Fastlane
22
module StreamActions
3-
VERSION = '0.3.80'
3+
VERSION = '0.3.81'
44
end
55
end

0 commit comments

Comments
 (0)