fastlane-plugin-slack_bot 1.4.0 → 1.5.0

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: 547c728585d89dc90c21cb4fa8d7f769b66f25c6ca075d09870a631422065357
4
- data.tar.gz: 751cfc3322ced61cf3b745f1015ebe100232d779f86960bbd524e8dacf32a51b
3
+ metadata.gz: 6b17a65fd5a04b1dbf291d3c6f84fad8000fa9ac2d0743de9fd0c9b0ed12e5d4
4
+ data.tar.gz: 261a9d9474163883fa2863bf2ec41eac28992272128501b51eaa04314fbc360d
5
5
  SHA512:
6
- metadata.gz: f19684e2772e518c7b257402a312644c1fab18ca9ef3314e8504e94e6e2ab936429a83c24125f431c13b3e6b21564b177825a90a1a993f4e5dfdb97686776ead
7
- data.tar.gz: c880684936b29820f7bca82087aab76d11b7fe35cb2d60bf53babbcaf768a9e394d56f4a5e08b72c001070ca8cea379ce62f07e74276ba0417609f8e06977a5f
6
+ metadata.gz: 763624a358655449ffb4f3ce863405db0d11ba2ed2b3be04030b7772c392ad21d20a6ad84bb0736e7a507bfb8474d18d174dc6da0c9a160328ee869485ac78c5
7
+ data.tar.gz: 5bbe624ca8b643948e25636779461f9e587c4863891af30b7d7e59689123b2320137564e5a033a593f49bd8984352e5b3b7206b20610c7b006a1576d6ba0aca1
@@ -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
  {
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SlackBot
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
4
4
  end
5
5
  end
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.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manish Rathi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-29 00:00:00.000000000 Z
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.3.26
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"