forked from bitrise-steplib/steps-slack-message
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep.yml
174 lines (167 loc) · 5.41 KB
/
step.yml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
---
title: Send a Slack message
summary: Send a [Slack](https://slack.com/) message to a channel or group.
description: |
Send a [Slack](https://slack.com/) message to a channel or group.
You have to register an **Incoming WebHook integration** at:
https://**YOURTEAMNAME**.slack.com/services
On the WebHook integration's page copy the **Webhook URL**.
*Don't forget to enable this Step to **Always run** if
you want to get notified about failed builds as well!*
website: https://github.com/bitrise-io/steps-slack-message
source_code_url: https://github.com/bitrise-io/steps-slack-message
support_url: https://github.com/bitrise-io/steps-slack-message/issues
host_os_tags:
- osx-10.10
- ubuntu-14.04
type_tags:
- notification
is_requires_admin_user: false
is_always_run: true
is_skippable: true
deps:
brew:
- name: go
apt_get:
- name: golang
bin_name: go
toolkit:
go:
package_name: github.com/bitrise-io/steps-slack-message
inputs:
- webhook_url:
opts:
title: "Slack Webhook URL"
is_expand: true
is_required: true
- channel:
opts:
title: "Target Slack channel, group or username"
description: |
* channel example: #general
* username example: @username
is_expand: true
is_required: false
- from_username: Bitrise CI - OK
opts:
title: "The 'from' name"
description: |
The one which should be presented as the sender of the message
is_expand: true
is_required: false
- from_username_on_error: Bitrise CI - ERROR
opts:
title: "The 'from' name - if the build failed"
description: |
**This option will be used if the build failed.** If you
leave this option empty then the default one will be used.
is_expand: true
is_required: false
- message: Type your message here
opts:
title: "The message you want to send"
is_expand: true
is_required: true
- message_on_error:
opts:
title: "The message you want to send - if the build failed"
description: |
**This option will be used if the build failed.** If you
leave this option empty then the default one will be used.
is_expand: true
is_required: false
- color: "good"
opts:
title: "Message color"
description: |
Color of the message. You can use hex color codes,
or the predefined Slack color words like `good`, `warning` or `danger`.
You can find more info about the color and other text formatting
in [Slack's documentation](https://api.slack.com/docs/message-attachments).
is_expand: true
is_required: true
- color_on_error: "danger"
opts:
title: "Message color"
description: |
**This option will be used if the build failed.** If you
leave this option empty then the default one will be used.
is_expand: true
is_required: false
- image_url:
opts:
title: "Image URL"
description: |
Optionally render an image from a URL.
You can include GIFs.
is_expand: true
is_required: false
- image_url_on_error:
opts:
title: "Image URL - if build failed"
description: |
**This option will be used if the build failed.**
Optionally render an image from a URL.
You can include GIFs.
is_expand: true
is_required: false
- emoji: ":white_check_mark:"
opts:
title: "Emoji Icon"
description: |
Optionally you can specify a Slack emoji as the sender
icon. You can use the Ghost icon for example
if you specify `:ghost:` here as an input.
**If you specify an Icon URL then this Emoji input will be ignored!**
is_expand: true
is_required: false
- emoji_on_error: ":no_entry_sign:"
opts:
title: "Emoji Icon - if build failed"
description: |
**This option will be used if the build failed.** If you
leave this option empty then the default one will be used.
is_expand: true
is_required: false
- icon_url:
opts:
title: "Icon URL"
description: |
Optionally you can specify a custom icon image URL
which will be presented as the sender icon.
Slack recommends an image a square image,
which can't be larger than 128px in width nor in height,
and it must be smaller than 64K in size.
Slack custom emoji guideline: [https://slack.zendesk.com/hc/en-us/articles/202931348-Using-emoji-and-emoticons](https://slack.zendesk.com/hc/en-us/articles/202931348-Using-emoji-and-emoticons)
*If you specify this input, the Emoji input will be ignored!*
is_expand: true
is_required: false
- icon_url_on_error:
opts:
title: "Icon URL - if build failed"
description: |
**This option will be used if the build failed.** If you
leave this option empty then the default one will be used.
is_expand: true
is_required: false
- link_names: "yes"
opts:
title: "Link Names"
description: |
Linkify names in the message such as `@slackbot` or `#random`
is_expand: true
is_required: false
value_options:
- "yes"
- "no"
- is_debug_mode: "no"
opts:
title: "Debug mode?"
description: |
Step prints additional debug information if this option
is enabled
is_expand: true
is_required: false
value_options:
- "yes"
- "no"