fastlane-plugin-stream_actions 0.3.73 → 0.3.75

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: b2fa982e3423bbbaede57cb7a7d663c305551886f5fda63c2fcaecef1285f931
4
- data.tar.gz: 6ae0da03d2782fc4555fd834b44bee53a1c617a8e4a5363e148d6c35b650ab0a
3
+ metadata.gz: fd731389e04ce8531c246f7f7beb22f076e237420f697e9f671b62d76a2a3026
4
+ data.tar.gz: 759b2ba40dc613a9f7e0355f2c1db9fe9d358c181efab0f7d77b466a7b5ee4cc
5
5
  SHA512:
6
- metadata.gz: d70f251404ac81dd4e8c0c245a7ca1b34d7da710bf2dee7b89ae1763d1cd02e40bd43fc3ecb89360e46e81487c521f04a51a8bd42403cf42fc4241762174f086
7
- data.tar.gz: 3f5bfe55267955c8dc7a9df6e8da713c81881cac42b8bd9da97d57a8fb7d44551e4add99dfe94020c6c26486221f8ee8ea1029f106a731eaf42ca9284d0c76d2
6
+ metadata.gz: 948a2d4cb05f7831380db12c388bac36667ade5f59b8c5c814830bca2ce3141f9c7e048d92ed085d8c89c1a600f64a3db7a1d0093ac55192f4ba95ce71e0023e
7
+ data.tar.gz: 2c156ae731e21113389a349d2890913f239e778b86ae73663df6a6e998970e0dcb593cc09e25195e1df889196702bfe57bcc8a40033972e63d388c3dfd802e25
data/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ > ## Want to add chat to your app?
2
+ >
3
+ > [Stream](https://getstream.io/chat/) powers chat for over 1 billion end-users. Get started with our free chat API trial.
4
+
5
+
1
6
  # Stream Fastlane Actions
2
7
 
3
8
  ## Getting Started
@@ -0,0 +1,35 @@
1
+ module Fastlane
2
+ module Actions
3
+ class AddSnapshotToCurrentVersionAction < Action
4
+ def self.run(params)
5
+ content = File.read(params[:file_path])
6
+ current_version = content.match(/String\s+=\s+"([\d.]+).*"/)[1]
7
+ updated_version = "#{current_version}-SNAPSHOT"
8
+ new_content = content.gsub!(/"[^"]+"/, "\"#{updated_version}\"")
9
+ File.open(params[:file_path], 'w') { |f| f.puts(new_content) }
10
+ UI.important("Replaced #{current_version} with #{updated_version} 📝")
11
+ end
12
+
13
+ #####################################################
14
+ # @!group Documentation
15
+ #####################################################
16
+
17
+ def self.description
18
+ 'Add snapshot postfix to the current release version'
19
+ end
20
+
21
+ def self.available_options
22
+ [
23
+ FastlaneCore::ConfigItem.new(
24
+ key: :file_path,
25
+ description: 'File with a version that needs to be a snapshot'
26
+ )
27
+ ]
28
+ end
29
+
30
+ def self.is_supported?(platform)
31
+ true
32
+ end
33
+ end
34
+ end
35
+ end
@@ -8,13 +8,19 @@ module Fastlane
8
8
 
9
9
  changed_files = Actions.sh("gh pr view #{params[:github_pr_num]} --json files -q '.files[].path'").split("\n")
10
10
 
11
- return true if changed_files.size == 100 # TODO: https://github.com/cli/cli/issues/5368
11
+ too_many_files = changed_files.size > 99 # TODO: https://github.com/cli/cli/issues/5368
12
+ if too_many_files
13
+ UI.important("Check it required because there were too many files changed.")
14
+ return true
15
+ end
12
16
 
13
17
  changed_files.select! do |path|
14
18
  params[:sources].any? { |required| path.start_with?(required) }
15
19
  end
16
20
 
17
- changed_files.size.positive?
21
+ is_check_required = changed_files.size.positive?
22
+ UI.important("Check is required: #{is_check_required}")
23
+ is_check_required
18
24
  end
19
25
 
20
26
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.73'
3
+ VERSION = '0.3.75'
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.3.73
4
+ version: 0.3.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-04 00:00:00.000000000 Z
11
+ date: 2024-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list
@@ -228,6 +228,7 @@ extra_rdoc_files: []
228
228
  files:
229
229
  - README.md
230
230
  - lib/fastlane/plugin/stream_actions.rb
231
+ - lib/fastlane/plugin/stream_actions/actions/add_snapshot_to_current_version.rb
231
232
  - lib/fastlane/plugin/stream_actions/actions/allure_api.rb
232
233
  - lib/fastlane/plugin/stream_actions/actions/allure_create_launch.rb
233
234
  - lib/fastlane/plugin/stream_actions/actions/allure_create_testcase.rb