fastlane-plugin-stream_actions 0.1.9 → 0.1.11
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 -16
- data/lib/fastlane/plugin/stream_actions/actions/read_changelog.rb +8 -0
- data/lib/fastlane/plugin/stream_actions/actions/touch_changelog.rb +22 -16
- data/lib/fastlane/plugin/stream_actions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f22d462a53c6669bcf93f005dfd34387d1d53536befdb05b926e82158816be6
|
4
|
+
data.tar.gz: 1a6ed7ad365b8c0fcb5f1f7043ddc5762079afeed51dcb324bd6eaa528956b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2668e8109d5e06cc7a012adf6179be8a5ee79de046451f289c2beb05652fba83d74fd8bb9864ee3bc82439c95248e0e930b343c222285b67fcaf59aaf69e2e0
|
7
|
+
data.tar.gz: 28b6858e86599babb2659547aa849334a690003cade02f391938df1a6b262ee156cf2bdb625387ff1efcaec92ad78eeedcdc2d48d0d0485e3fb09e571b0839cd
|
@@ -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
|
@@ -40,6 +40,14 @@ module Fastlane
|
|
40
40
|
verify_block: proc do |v|
|
41
41
|
UI.user_error!("You need to pass the version of the release you want to obtain the changelog from") unless v
|
42
42
|
end
|
43
|
+
),
|
44
|
+
FastlaneCore::ConfigItem.new(
|
45
|
+
key: :changelog_path,
|
46
|
+
env_name: 'FL_CHANGELOG_PATH',
|
47
|
+
description: 'The path to your project CHANGELOG.md',
|
48
|
+
is_string: true,
|
49
|
+
default_value: './CHANGELOG.md',
|
50
|
+
optional: true
|
43
51
|
)
|
44
52
|
]
|
45
53
|
end
|
@@ -54,22 +54,28 @@ module Fastlane
|
|
54
54
|
|
55
55
|
def self.available_options
|
56
56
|
[
|
57
|
-
FastlaneCore::ConfigItem.new(
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
57
|
+
FastlaneCore::ConfigItem.new(
|
58
|
+
key: :github_repo,
|
59
|
+
env_name: 'GITHUB_REPOSITORY',
|
60
|
+
description: 'The owner and repository name. For example, octocat/Hello-World',
|
61
|
+
is_string: true
|
62
|
+
),
|
63
|
+
FastlaneCore::ConfigItem.new(
|
64
|
+
key: :changelog_path,
|
65
|
+
env_name: 'FL_CHANGELOG_PATH',
|
66
|
+
description: 'The path to your project CHANGELOG.md',
|
67
|
+
is_string: true,
|
68
|
+
default_value: './CHANGELOG.md',
|
69
|
+
optional: true
|
70
|
+
),
|
71
|
+
FastlaneCore::ConfigItem.new(
|
72
|
+
key: :release_version,
|
73
|
+
env_name: 'FL_CHANGELOG_RELEASE_VERSION',
|
74
|
+
description: 'The release version, according to semantic versioning',
|
75
|
+
is_string: true,
|
76
|
+
default_value: '',
|
77
|
+
optional: false
|
78
|
+
)
|
73
79
|
]
|
74
80
|
end
|
75
81
|
|
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.11
|
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-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|