fastlane-plugin-discord_webhook_notifier 0.1.0 → 0.1.1
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: 2f878b80076977508d3a372cd09a470718cdf7868b4260ab82b7d56aa77f29cb
|
4
|
+
data.tar.gz: 23719f227acc3fe769a1a859337fe6e920dc191754230b305a989a4f6a424aeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d88e5967546d7b5c5ce89c14fe56c633e236f4e1377b939f7e134acf3b9ff59feac8480998fdf29133d494b3803610df7708ac0359299e6363a1e06c614181b
|
7
|
+
data.tar.gz: bf4c82358575ecc8a1258b16ebf897204103ce5912101b6d530b014ce52bef3f8f2c6ff55c488a43525d81d571cd2cb3d145d2c07bd8ebe22e3c943df993d33d
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ fastlane add_plugin discord_webhook_notifier
|
|
12
12
|
|
13
13
|
## About discord_webhook_notifier
|
14
14
|
|
15
|
-
Notify a Discord channel
|
15
|
+
Notify a Discord channel easily when a build breake
|
16
16
|
|
17
17
|
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
18
18
|
|
data/lib/fastlane/plugin/discord_webhook_notifier/actions/discord_webhook_notifier_action.rb
CHANGED
@@ -5,13 +5,15 @@ module Fastlane
|
|
5
5
|
module Actions
|
6
6
|
class DiscordWebhookNotifierAction < Action
|
7
7
|
def self.run(params)
|
8
|
-
UI.message(params[:webhook_url])
|
9
8
|
|
10
9
|
# Config paramters
|
11
10
|
webhook_url = params[:webhook_url]
|
12
11
|
message = params[:message]
|
13
12
|
parameters = params[:parameters]
|
14
|
-
build_url
|
13
|
+
if (defined?(params[:build_url]) && params[:build_url].instance_of?(String))
|
14
|
+
build_url = params[:build_url].to_s
|
15
|
+
end
|
16
|
+
|
15
17
|
|
16
18
|
parametersString = ""
|
17
19
|
parameters.each do |key, value|
|
@@ -25,7 +27,7 @@ module Fastlane
|
|
25
27
|
'```',
|
26
28
|
parametersString,
|
27
29
|
'```',
|
28
|
-
|
30
|
+
params[:build_url].instance_of?(String) ? 'Build URL: <' + build_url + '>' : '', ## The <> are used to disable auto embed
|
29
31
|
'"}\' --header "Content-Type:application/json" ' + webhook_url
|
30
32
|
].join
|
31
33
|
|
@@ -35,7 +37,7 @@ module Fastlane
|
|
35
37
|
end
|
36
38
|
|
37
39
|
def self.description
|
38
|
-
"Notify a Discord channel
|
40
|
+
"Notify a Discord channel easily when a build breake"
|
39
41
|
end
|
40
42
|
|
41
43
|
def self.authors
|