fastlane-plugin-stream_actions 0.1.1 → 0.1.3
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 +4 -4
- data/lib/fastlane/plugin/stream_actions/actions/is_check_required.rb +1 -1
- data/lib/fastlane/plugin/stream_actions/actions/pod_push_safely.rb +1 -1
- data/lib/fastlane/plugin/stream_actions/actions/read_changelog.rb +6 -6
- data/lib/fastlane/plugin/stream_actions/actions/update_testplan.rb +1 -1
- data/lib/fastlane/plugin/stream_actions/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe523cad661bd0be5c6f5b6506c5d53bb9cc529c2ba9358d528178d1cb549d62
|
4
|
+
data.tar.gz: 58455c34dfd514cc81606d0441a3c3a06b7812355efe9f280fa48a7cf6305e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e46569e075b8bfa1976b0735395b4701982628cd14c9c60e44936fd6e81f4d34de5a98c8e3f62f0389a0598bfd497eb38767e1b906a64d874d745836789f2b
|
7
|
+
data.tar.gz: f805c1e49334611b7df03ad457e771f61a45c5500e98109f98c5fb419a85764c6797c6bcd3aeaaf5c33546eb8be74943404259309f5984561e7a20624db6ef24
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
class
|
3
|
+
class ReadChangelogAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
UI.user_error!('You need to pass the version of the release you want to obtain the changelog from') unless
|
5
|
+
UI.user_error!('You need to pass the version of the release you want to obtain the changelog from') unless params[:version]
|
6
6
|
|
7
|
-
UI.message("Getting changelog for #{
|
7
|
+
UI.message("Getting changelog for #{params[:version]}")
|
8
8
|
reading_changelog = false
|
9
9
|
changes = ''
|
10
10
|
changelog_lines = File.readlines('../CHANGELOG.md')
|
@@ -16,11 +16,11 @@ module Fastlane
|
|
16
16
|
changes << line
|
17
17
|
end
|
18
18
|
|
19
|
-
reading_changelog = true if line.start_with?("#{start_token}#{
|
19
|
+
reading_changelog = true if line.start_with?("#{start_token}#{params[:version]}")
|
20
20
|
end
|
21
21
|
|
22
|
-
UI.user_error!("No changelog found for #{
|
23
|
-
UI.success("Changelog for #{
|
22
|
+
UI.user_error!("No changelog found for #{params[:version]}") unless changes.length > 0
|
23
|
+
UI.success("Changelog for #{params[:version]}: \n#{changes}")
|
24
24
|
changes
|
25
25
|
end
|
26
26
|
|