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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b49f2a69729dee596f6be3a9504deed796ba5a7adf39c1e1c70aebd5a5764baa
|
4
|
+
data.tar.gz: 8d90994596006326c9a727ffeb3c6858bc417721579182386b36393421a9f28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|