We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5eedad + fe0fa04 commit 6cd3b32Copy full SHA for 6cd3b32
1 file changed
lib/chatops.rb
@@ -1,4 +1,16 @@
1
module Chatops
2
+ # THREAD_STYLES defines the various thread styles available to Hubot Chatops RPC.
3
+ # https://github.com/github/hubot-classic/blob/master/docs/rpc_chatops_protocol.md#executing-commands
4
+ THREAD_STYLES = {
5
+ # Channel thread style is a standard in-channel reply.
6
+ channel: 0,
7
+ # Threaded thread style will send the reply to a thread from the original message.
8
+ threaded: 1,
9
+ # Threaded and channel thread style will send the reply to a thread from the original message,
10
+ # and post an update into the channel as well (helpful when the original message in the thread is old).
11
+ threaded_and_channel: 2,
12
+ }.freeze
13
+
14
def self.public_key
15
ENV[public_key_env_var_name]
16
end
0 commit comments