fastlane-plugin-slack_bot 1.4.0 → 1.5.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 711bbf722460d03019a7f8723b4c2e6f86ab567e69fc8e8848f09843621f0e0c
|
4
|
+
data.tar.gz: 7cf5853af0d4282698bbf29bf8875fb7cbfb4e07a362b99b9c01a8e94b82f425
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eafe21277f57979b0644f3583dd5012ed2b807157921e8b349e7890fcce86b6aba41126a825b2a10e3ccb983d3ffbaa579880287a1bc8a83285e3ad576a29872
|
7
|
+
data.tar.gz: 38c710312b2560140662d00ee9e0e3957c633a39b63246703ef5063603e5e7f91cd98409cf634e1c3484c205bab20e85ba4d4cc88c7eb7b15f7dcc6af6dd15dc
|
@@ -142,6 +142,12 @@ module Fastlane
|
|
142
142
|
optional: true,
|
143
143
|
default_value: true,
|
144
144
|
is_string: false),
|
145
|
+
FastlaneCore::ConfigItem.new(key: :no_color,
|
146
|
+
env_name: "FL_POST_TO_SLACK_NO_COLOR",
|
147
|
+
description: "Removes the border on the left side. If true, :success option will be ignored",
|
148
|
+
optional: true,
|
149
|
+
default_value: false,
|
150
|
+
is_string: false),
|
145
151
|
FastlaneCore::ConfigItem.new(key: :thread_ts,
|
146
152
|
env_name: "FL_POST_TO_SLACK_THREAD_TS",
|
147
153
|
description: "Provide another message's ts value to make this message a reply",
|
@@ -15,18 +15,18 @@ module Fastlane
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.generate_slack_attachments(options)
|
18
|
-
color = (options[:success] ? 'good' : 'danger')
|
19
18
|
should_add_payload = ->(payload_name) { options[:default_payloads].map(&:to_sym).include?(payload_name.to_sym) }
|
20
19
|
|
21
20
|
slack_attachment = {
|
22
21
|
fallback: options[:message],
|
23
22
|
text: options[:message],
|
24
23
|
pretext: options[:pretext],
|
25
|
-
color: color,
|
26
24
|
mrkdwn_in: ["pretext", "text", "fields", "message"],
|
27
25
|
fields: []
|
28
26
|
}
|
29
27
|
|
28
|
+
slack_attachment[:color] = (options[:success] ? 'good' : 'danger') unless options[:no_color]
|
29
|
+
|
30
30
|
# custom user payloads
|
31
31
|
slack_attachment[:fields] += options[:payload].map do |k, v|
|
32
32
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-slack_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manish Rathi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
176
|
+
rubygems_version: 3.4.19
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: "A fastlane plugin to post slack message using bot api token. \U0001F680"
|