-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathslack.php
More file actions
122 lines (100 loc) · 3.4 KB
/
slack.php
File metadata and controls
122 lines (100 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
return [
/*
|-------------------------------------------------------------
| Incoming webhook endpoint
|-------------------------------------------------------------
|
| The endpoint which Slack generates when creating a
| new incoming webhook. It will look something like
| https://hooks.slack.com/services/XXXXXXXX/XXXXXXXX/XXXXXXXXXXXXXX
|
*/
'endpoint' => env('SLACK_ENDPOINT'),
/*
|-------------------------------------------------------------
| Default channel
|-------------------------------------------------------------
|
| The default channel we should post to. The channel can either be a
| channel like #general, a private #group, or a @username. Set to
| null to use the default set on the Slack webhook
|
*/
'channel' => env('SLACK_CHANNEL'),
/*
|-------------------------------------------------------------
| Default username
|-------------------------------------------------------------
|
| The default username we should post as. Set to null to use
| the default set on the Slack webhook
|
*/
'username' => env('SLACK_USERNAME'),
/*
|-------------------------------------------------------------
| Default icon
|-------------------------------------------------------------
|
| The default icon to use. This can either be a URL to an image or Slack
| emoji like :ghost: or :heart_eyes:. Set to null to use the default
| set on the Slack webhook
|
*/
'icon' => null,
/*
|-------------------------------------------------------------
| Link names
|-------------------------------------------------------------
|
| Whether names like @regan should be converted into links
| by Slack
|
*/
'link_names' => false,
/*
|-------------------------------------------------------------
| Unfurl links
|-------------------------------------------------------------
|
| Whether Slack should unfurl links to text-based content
|
*/
'unfurl_links' => false,
/*
|-------------------------------------------------------------
| Unfurl media
|-------------------------------------------------------------
|
| Whether Slack should unfurl links to media content such
| as images and YouTube videos
|
*/
'unfurl_media' => true,
/*
|-------------------------------------------------------------
| Markdown in message text
|-------------------------------------------------------------
|
| Whether message text should be interpreted in Slack's Markdown-like
| language. For formatting options, see Slack's help article: http://goo.gl/r4fsdO
|
*/
'allow_markdown' => true,
/*
|-------------------------------------------------------------
| Markdown in attachments
|-------------------------------------------------------------
|
| Which attachment fields should be interpreted in Slack's Markdown-like
| language. By default, Slack assumes that no fields in an attachment
| should be formatted as Markdown.
|
*/
'markdown_in_attachments' => [],
// Allow Markdown in just the text and title fields
// 'markdown_in_attachments' => ['text', 'title']
// Allow Markdown in all fields
// 'markdown_in_attachments' => ['pretext', 'text', 'title', 'fields', 'fallback']
];