fastlane-plugin-stream_actions 0.1.2 → 0.1.4
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 +3 -1
- data/lib/fastlane/plugin/stream_actions/actions/read_changelog.rb +5 -5
- data/lib/fastlane/plugin/stream_actions/actions/update_testplan.rb +1 -0
- 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: d86c11c6bb9a4e8d5f01ffbbf5d8ad1abbe5f5fd936c024337e90e4efd9c95b9
|
4
|
+
data.tar.gz: 92f4ccaa57ac8fe1c3b5a313fa2641c03fe6e29fe1c94502f2fe00a0f8e66cfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f6de7ee9c8595e380cb2a1381ccb18f6dd5df71458ff99d53ac8ff57c17b6f887db0624b767dd0f8cab18d11abd7a0d2d6d4ee5d529f933fbd7da645c270b0
|
7
|
+
data.tar.gz: 44fe021c2bb9535f6ea7de8db84776e27473efd42ff667c5b3afffcd58938986f55db61d30a97fc5bd335fbbc9863001aabc18cb9a8317af6a3d6e7965f66f0a
|
@@ -13,7 +13,7 @@ module Fastlane
|
|
13
13
|
return true if changed_files.size == 100 # TODO: https://github.com/cli/cli/issues/5368
|
14
14
|
|
15
15
|
changed_files.select! do |path|
|
16
|
-
params[:sources][params[:type]
|
16
|
+
params[:sources][params[:type]].any? { |required| path.start_with?(required) }
|
17
17
|
end
|
18
18
|
|
19
19
|
changed_files.size.positive?
|
@@ -32,6 +32,7 @@ module Fastlane
|
|
32
32
|
FastlaneCore::ConfigItem.new(
|
33
33
|
key: :sources,
|
34
34
|
description: 'Array of paths to scan',
|
35
|
+
is_string: false,
|
35
36
|
verify_block: proc do |source|
|
36
37
|
UI.user_error!("Sources have to be specified") unless source
|
37
38
|
end
|
@@ -39,6 +40,7 @@ module Fastlane
|
|
39
40
|
FastlaneCore::ConfigItem.new(
|
40
41
|
key: :type,
|
41
42
|
description: 'Type of the check that was triggered',
|
43
|
+
is_string: false,
|
42
44
|
verify_block: proc do |type|
|
43
45
|
UI.user_error!("Type has to be specified") unless type
|
44
46
|
end
|
@@ -2,9 +2,9 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
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
|
|
@@ -34,6 +34,7 @@ module Fastlane
|
|
34
34
|
FastlaneCore::ConfigItem.new(
|
35
35
|
key: :env_vars,
|
36
36
|
description: 'The environment variables to add to test plan',
|
37
|
+
is_string: false,
|
37
38
|
verify_block: proc do |path|
|
38
39
|
UI.user_error!("The environment variables array should not be empty") if env_vars.empty?
|
39
40
|
end
|