fastlane-plugin-stream_actions 0.3.80 → 0.3.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bfa783e7d6cc05e42f76fe278a4ecb93f454d6d31eaf9fcd0f30c0c04a1429e
|
4
|
+
data.tar.gz: e316a12048505783af39e58e25b79e90d462def241d0be83b0f10f1d40f4f5c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c51b7e7c11923511658ba3a0d85ed49a432a7f4a02ab378da451a830b0b84aec5c023641ffda6b8605be1f10dfe404cac9bebb5cf4e41116645233b0242d11
|
7
|
+
data.tar.gz: 946f18f34c07f015c67eb518aefb4592b07576df950983fe5a52ffe7ae52b6a1749b2be221cd515af13fc889f886e29d2f3b7ab32b0b797aa0e635cdba97766f
|
@@ -3,18 +3,19 @@ module Fastlane
|
|
3
3
|
class ReadChangelogAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
UI.message("Getting changelog for #{params[:version]}")
|
6
|
-
reading_changelog = false
|
7
|
-
changes = ''
|
8
|
-
changelog_lines = File.readlines(params[:changelog_path])
|
9
|
-
changelog_lines.each do |line|
|
10
|
-
start_token = '# ['
|
11
|
-
if reading_changelog
|
12
|
-
break if line.start_with?(start_token)
|
13
6
|
|
14
|
-
|
7
|
+
changes = ''
|
8
|
+
start_token = '# '
|
9
|
+
version_found = false
|
10
|
+
File.readlines(params[:changelog_path]).each do |line|
|
11
|
+
unless version_found
|
12
|
+
version_found = line.start_with?("#{start_token}#{params[:version]}") || line.start_with?("#{start_token}[#{params[:version]}")
|
13
|
+
next
|
15
14
|
end
|
16
15
|
|
17
|
-
|
16
|
+
break if line.start_with?(start_token)
|
17
|
+
|
18
|
+
changes << line
|
18
19
|
end
|
19
20
|
|
20
21
|
UI.user_error!("No changelog found for #{params[:version]}") unless changes.length > 0
|
@@ -41,7 +41,8 @@ module Fastlane
|
|
41
41
|
|
42
42
|
changelog =
|
43
43
|
if params[:use_changelog]
|
44
|
-
|
44
|
+
version = params[:is_manual_upload] ? 'Upcoming' : params[:app_version]
|
45
|
+
other_action.read_changelog(version: version, changelog_path: params[:changelog_path])
|
45
46
|
else
|
46
47
|
testflight_instructions(params)
|
47
48
|
end
|
@@ -171,6 +172,12 @@ module Fastlane
|
|
171
172
|
description: 'Build configuration',
|
172
173
|
default_value: 'Release'
|
173
174
|
),
|
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
|
+
),
|
174
181
|
FastlaneCore::ConfigItem.new(
|
175
182
|
key: :use_changelog,
|
176
183
|
description: 'Use the changelog as a testflight instructions',
|