fastlane-plugin-stream_actions 0.3.56 → 0.3.57

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d249166cf95a7bdf05d9768a37900a29c56f60f49ab70d086aed41ec2295bd9e
4
- data.tar.gz: c4305ec4380aeb992bcfc499209a337f6bc456172a368a7a7b338c87797aae8c
3
+ metadata.gz: b49f2a69729dee596f6be3a9504deed796ba5a7adf39c1e1c70aebd5a5764baa
4
+ data.tar.gz: 8d90994596006326c9a727ffeb3c6858bc417721579182386b36393421a9f28e
5
5
  SHA512:
6
- metadata.gz: a6ed3d0525e720286e4bf440785c9827e9d65c99659b63aea1ead5e6bd9f0a5f407becf4939c6cbc7db1aa254e03561b0cf8406a27acfff02f1c8eda2b1b5825
7
- data.tar.gz: de805cb4fe9d13202d144def9a64129027131413903f945aebdd567e835f753ee69d622010da8b9897b7461ca5d15d5480f2ab8ede370bc88bd41a152e64afcd
6
+ metadata.gz: 4d4c40e817602724c1aa409bbc770ea1b286e6f2d263c240785a2d566bd3adb91f720d3ae3a1dc4def8ffce26a9aa4452a26be9d93977cecb69e1568e91876dd
7
+ data.tar.gz: 2ddc3f6b0ea2919b781326caeeb9979f47154328fcadcbc21e6c14fb0c85ffe74a7aa35f2f76e7b3dedcafe7b28bf12ef3db915ab8c045f3bbc6cb267f3f05b0
@@ -2,7 +2,9 @@ module Fastlane
2
2
  module Actions
3
3
  class PrCommentAction < Action
4
4
  def self.run(params)
5
- if params[:pr_num]
5
+ if params[:pr_num].to_s.empty?
6
+ UI.important('Skipping the PR comment.')
7
+ else
6
8
  additional_args = []
7
9
  if params[:edit_last_comment_with_text]
8
10
  UI.message('Checking last comment for required pattern.')
@@ -17,8 +19,6 @@ module Fastlane
17
19
  end
18
20
  sh("gh pr comment #{params[:pr_num]} -b '#{params[:text]}' #{additional_args.join(' ')}")
19
21
  UI.success('PR comment been added.')
20
- else
21
- UI.error('Skipping the PR comment because PR number has not been provided.')
22
22
  end
23
23
  end
24
24
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.56'
3
+ VERSION = '0.3.57'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.56
4
+ version: 0.3.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream