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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e70cd39c5c644d6c32857d6d03444addbdeed3966a24c6b83e06215f620c7ee0
4
- data.tar.gz: db8d4280649ec11e52fd4c7b78e2c24edba1cd9390a5ce9386dc93e26a465478
3
+ metadata.gz: 0f22d462a53c6669bcf93f005dfd34387d1d53536befdb05b926e82158816be6
4
+ data.tar.gz: 1a6ed7ad365b8c0fcb5f1f7043ddc5762079afeed51dcb324bd6eaa528956b92
5
5
  SHA512:
6
- metadata.gz: e3f9788c4b4eb0ffbbb5fbd178c45681ca68d039ce1a3eb9311961ca50a71c2b900adec91b168a6bb56f4e83c7008a354e116d9d54d4643ad955f324b5d33f4c
7
- data.tar.gz: c7f5206c11ed95b95d914decc895a8e2dbe31605c538e0207614b8b190feb5be4a78f73ca9441677e991c0dfc91a6dc1e9157cc19f6a33fd98a80df0abd019bd
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 if ENV['GITHUB_EVENT_NAME'] != 'pull_request' && !params[:force]
7
+ return true unless params[:github_pr_num]
8
8
 
9
- UI.user_error!("GITHUB_PR_NUM has to be specified") unless params[:github_pr_num]
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][params[:type]].any? { |required| path.start_with?(required) }
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(key: :github_repo,
58
- env_name: 'GITHUB_REPOSITORY',
59
- description: 'The owner and repository name. For example, octocat/Hello-World',
60
- is_string: true),
61
- FastlaneCore::ConfigItem.new(key: :changelog_path,
62
- env_name: 'FL_CHANGELOG_PATH',
63
- description: 'The path to your project CHANGELOG.md',
64
- is_string: true,
65
- default_value: './CHANGELOG.md',
66
- optional: true),
67
- FastlaneCore::ConfigItem.new(key: :release_version,
68
- env_name: 'FL_CHANGELOG_RELEASE_VERSION',
69
- description: 'The release version, according to semantic versioning',
70
- is_string: true,
71
- default_value: '',
72
- optional: false)
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.9"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  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.9
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-01 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler