fastlane-plugin-slack_bot 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/fastlane/plugin/slack_bot/actions/post_to_slack.rb +9 -2
- data/lib/fastlane/plugin/slack_bot/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a46dbadbfa598f1c758348e0154ebdaf8dcdffcf4fba9d3f0e9605f517ef55a2
|
4
|
+
data.tar.gz: 8a0fac48642f5583f420742bed53ec23061c5771c274c7ceff9376b9e0640f5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd12b23c8e91eab7dc0b826c55de32e7f54bd7cfe364a1bace438cf46e88db1fc4569ac5f4e234fbfd0e43b81593f6a606e73032ccc50ca8b876a39aae01f801
|
7
|
+
data.tar.gz: 6c7a885efba03ef05109c60e771acab3d5c05c08bf5d9285abe09e12498139c2c414ffb1f38fd338fee4c402ac1fa563af64e3436797e940c383056bd9903d54
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -24,7 +24,7 @@ i.e Listing couple of slack **webhook url** limitations:
|
|
24
24
|
- can’t post a message inside a slack thread.
|
25
25
|
- can’t update a posted slack message.
|
26
26
|
- can’t list and upload a file inside a slack channel.
|
27
|
-
-
|
27
|
+
- many more, compare to a **Slack Bot** 🤖 using the [Slack APIs](https://api.slack.com/)
|
28
28
|
|
29
29
|
## Getting Started
|
30
30
|
|
@@ -39,10 +39,11 @@ module Fastlane
|
|
39
39
|
attachments: [slack_attachment]
|
40
40
|
}
|
41
41
|
payload[:as_user] = options[:as_user] if options[:as_user] # default is false
|
42
|
+
payload[:reply_broadcast] = options[:reply_broadcast] if options[:reply_broadcast] # default is false
|
42
43
|
payload[:thread_ts] = options[:thread_ts] unless options[:thread_ts].nil?
|
43
44
|
payload = payload.to_json
|
44
45
|
|
45
|
-
response = Excon.post(api_url, headers: headers, body: payload)
|
46
|
+
response = Excon.post(api_url, headers: headers, body: payload, omit_default_port: true)
|
46
47
|
result = self.formatted_result(response)
|
47
48
|
rescue => exception
|
48
49
|
UI.error("Exception: #{exception}")
|
@@ -144,7 +145,13 @@ module Fastlane
|
|
144
145
|
FastlaneCore::ConfigItem.new(key: :thread_ts,
|
145
146
|
env_name: "FL_POST_TO_SLACK_THREAD_TS",
|
146
147
|
description: "Provide another message's ts value to make this message a reply",
|
147
|
-
optional: true)
|
148
|
+
optional: true),
|
149
|
+
FastlaneCore::ConfigItem.new(key: :reply_broadcast,
|
150
|
+
env_name: "FL_POST_TO_SLACK_REPLY_BROADCAST",
|
151
|
+
description: "Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false",
|
152
|
+
optional: true,
|
153
|
+
default_value: false,
|
154
|
+
is_string: false)
|
148
155
|
]
|
149
156
|
end
|
150
157
|
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manish Rathi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.148.1
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: manishrathi19902013@gmail.com
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
@@ -157,7 +157,7 @@ homepage: https://github.com/crazymanish/fastlane-plugin-slack_bot
|
|
157
157
|
licenses:
|
158
158
|
- MIT
|
159
159
|
metadata: {}
|
160
|
-
post_install_message:
|
160
|
+
post_install_message:
|
161
161
|
rdoc_options: []
|
162
162
|
require_paths:
|
163
163
|
- lib
|
@@ -172,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
|
-
rubygems_version: 3.
|
176
|
-
signing_key:
|
175
|
+
rubygems_version: 3.3.7
|
176
|
+
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: "A fastlane plugin to post slack message using bot api token. \U0001F680"
|
179
179
|
test_files: []
|