fastlane-plugin-stream_actions 0.1.9 → 0.1.10
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: 02e2a2e8cb2e5d2d5d925ed793baccbe10db3871f6e2857febf4d80d80807987
|
|
4
|
+
data.tar.gz: f7e24644ce221d6be78236e8b49f12e964b9e0060a944ca07b78fc736d7b21ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c090f9c7fd35b268824dc8a80202b01f5d0563e5940cbd106395fa6e0444a4d2ef35916d9cc551079e5521f66037d55080176b5f143f72bbc96b62d0590de64
|
|
7
|
+
data.tar.gz: 52e3851eaf9063f965008dfb628e34028c886cb27c9671be6ef25d0233c5a609f55fa17223460caada3b899d2dac177c4670f7b3e8388778b5eff2b314a2dc26
|
|
@@ -4,16 +4,16 @@ module Fastlane
|
|
|
4
4
|
|
|
5
5
|
class IsCheckRequiredAction < Action
|
|
6
6
|
def self.run(params)
|
|
7
|
-
return true
|
|
7
|
+
return true unless params[:github_pr_num]
|
|
8
8
|
|
|
9
|
-
UI.
|
|
9
|
+
UI.message("Checking if check is required for PR ##{params[:github_pr_num]}")
|
|
10
10
|
|
|
11
11
|
changed_files = sh("gh pr view #{params[:github_pr_num]} --json files -q '.files[].path'").split("\n")
|
|
12
12
|
|
|
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]
|
|
16
|
+
params[:sources].any? { |required| path.start_with?(required) }
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
changed_files.size.positive?
|
|
@@ -37,23 +37,10 @@ module Fastlane
|
|
|
37
37
|
UI.user_error!("Sources have to be specified") unless source
|
|
38
38
|
end
|
|
39
39
|
),
|
|
40
|
-
FastlaneCore::ConfigItem.new(
|
|
41
|
-
key: :type,
|
|
42
|
-
description: 'Type of the check that was triggered',
|
|
43
|
-
is_string: false,
|
|
44
|
-
verify_block: proc do |type|
|
|
45
|
-
UI.user_error!("Type has to be specified") unless type
|
|
46
|
-
end
|
|
47
|
-
),
|
|
48
40
|
FastlaneCore::ConfigItem.new(
|
|
49
41
|
env_name: 'GITHUB_PR_NUM',
|
|
50
42
|
key: :github_pr_num,
|
|
51
43
|
description: 'GitHub PR number'
|
|
52
|
-
),
|
|
53
|
-
FastlaneCore::ConfigItem.new(
|
|
54
|
-
key: :force,
|
|
55
|
-
description: 'Should the checked be anyway',
|
|
56
|
-
is_string: false
|
|
57
44
|
)
|
|
58
45
|
]
|
|
59
46
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-stream_actions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GetStream
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-11-
|
|
11
|
+
date: 2022-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|