Replace the use of webhooks with the chat.postMessage API in release-tools
Summary
Webhooks are used in:
- slack/auto_deploy_notification.rb
- slack/chatops_notification.rb
- slack/merge_train_notification.rb
- slack/tag_notification.rb
We can replace these, and instead use slack/message.rb to send notifications to Slack.
The benefit to doing this is, it will simplify release-tools a little bit since we can remove the code around using webhooks, and we will use one method of posting messages to Slack (the chat.postMessage
API).
The benefit of Slack webhooks is that it is easier to use than the chat.postMessage
API (while being less powerful than the API). But since we are already using the API in release-tools, using webhooks as well doesn't give us any benefits.
Edited by Reuben Pereira