fastlane-plugin-stream_actions 0.3.89 → 0.3.91

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: 0db6ddbcff2f2b54f0509b04db1626b9a8ef0544cc14071c74d3f2216ad0b9be
4
- data.tar.gz: b8f9708dbda4beb3be7a768da9b5ff217df5470ecb23e50edc8c769950b8446c
3
+ metadata.gz: 46d6bad686cd0ff35132a24eacc24d3957553cab4071c4a67268d8ba3d380351
4
+ data.tar.gz: 4978dee01d5dc8e5b5f9b8fe5290add0e2cf46571f669420331cc8f136a904fa
5
5
  SHA512:
6
- metadata.gz: c92dbc548ad629580909af45ccbec1677aa22a106dc18bae85fc4f890416652d8de49b65e565a75558e5c40149f00d6322439c3acf611c2f93838ed7b33dc492
7
- data.tar.gz: bf55934306328f5bd86525a948618f4e23b1738d489cede99d166ff719cb1ba333cef052ea7afda671b8c4b611a7bd28c1c434747dc8d55a5094966f9d26dcf5
6
+ metadata.gz: 3367868e084c3d8947badee52de4c7b66cb501f52b57493ccfd9507127f08af9099a273441eaf802b52151b84dcd5deae121959df7f9249c53be7f75ffcaba6a
7
+ data.tar.gz: 4ae0ac791d2571ecc0696058ca82587089c3cb88584fd9ace77b1ce5d8b8d7c7c820d4ab71553a9052d32f72ce40f42e12c4af181800d936ab1d76d8f8142a9a
@@ -8,8 +8,9 @@ module Fastlane
8
8
  additional_args = []
9
9
  if params[:edit_last_comment_with_text]
10
10
  UI.message('Checking last comment for required pattern.')
11
- last_comment = sh("gh pr view #{params[:pr_num]} --json comments --jq '.comments | map(select(.author.login == \"Stream-SDK-Bot\")) | last'")
12
- last_comment_match = params[:edit_last_comment_with_text] && last_comment.include?(params[:edit_last_comment_with_text])
11
+ last_comments_per_author = sh("gh pr view #{params[:pr_num]} --json comments --jq '.comments | group_by(.author.login) | map(last)'")
12
+ required_edition = params[:edit_last_comment_with_text]
13
+ last_comment_match = required_edition && JSON.parse(last_comments_per_author).any? { |comment| comment['body'].include?(required_edition) }
13
14
 
14
15
  if last_comment_match
15
16
  additional_args << '--edit-last'
@@ -7,7 +7,12 @@ module Fastlane
7
7
  ensure_everything_is_set_up(params)
8
8
  ensure_release_tag_is_new(version_number)
9
9
 
10
- changes = params[:changelog] || other_action.read_changelog(version: version_number, changelog_path: params[:changelog_path])
10
+ changes =
11
+ if params[:use_changelog]
12
+ params[:changelog] || other_action.read_changelog(version: version_number, changelog_path: params[:changelog_path])
13
+ else
14
+ version_number
15
+ end
11
16
 
12
17
  release_details = other_action.set_github_release(
13
18
  repository_name: params[:github_repo],
@@ -95,6 +100,12 @@ module Fastlane
95
100
  is_string: false,
96
101
  optional: true
97
102
  ),
103
+ FastlaneCore::ConfigItem.new(
104
+ key: :use_changelog,
105
+ description: 'Use the changelog as a testflight instructions',
106
+ is_string: false,
107
+ default_value: true
108
+ ),
98
109
  FastlaneCore::ConfigItem.new(
99
110
  key: :changelog_path,
100
111
  env_name: 'FL_CHANGELOG_PATH',
@@ -15,11 +15,16 @@ module Fastlane
15
15
 
16
16
  ensure_release_tag_is_new(version_number)
17
17
 
18
- changes = other_action.touch_changelog(
19
- release_version: version_number,
20
- github_repo: params[:github_repo],
21
- changelog_path: params[:changelog_path]
22
- )
18
+ changes =
19
+ if params[:use_changelog]
20
+ other_action.touch_changelog(
21
+ release_version: version_number,
22
+ github_repo: params[:github_repo],
23
+ changelog_path: params[:changelog_path]
24
+ )
25
+ else
26
+ "#{version_number} Release"
27
+ end
23
28
 
24
29
  podspecs = params[:podspec_names]&.map { |sdk| "#{sdk}.podspec" } || []
25
30
  podspecs.each do |podspec|
@@ -120,6 +125,12 @@ module Fastlane
120
125
  is_string: false,
121
126
  optional: true
122
127
  ),
128
+ FastlaneCore::ConfigItem.new(
129
+ key: :use_changelog,
130
+ description: 'Use the changelog as a testflight instructions',
131
+ is_string: false,
132
+ default_value: true
133
+ ),
123
134
  FastlaneCore::ConfigItem.new(
124
135
  key: :changelog_path,
125
136
  env_name: 'FL_CHANGELOG_PATH',
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.89'
3
+ VERSION = '0.3.91'
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.89
4
+ version: 0.3.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-24 00:00:00.000000000 Z
11
+ date: 2025-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list