kinta-lib / com.dailymotion.kinta.integration.slack / Slack / sendNotification
sendNotification
fun sendNotification(channel:
String
, text:
String
, webhookUrl:
String
? = null, username:
String
= "Release Bot", iconEmoji:
String
= ":robot_face:"):
Unit
Send a slack notification
Parameters
webhookUrl
- : the webhook url as in https://api.slack.com/messaging/webhooks
If null, it will default to the SLACK_WEBHOOK_URL environnment variable.
channel
- : the slack channel to the message to
text
- : the body of the message