-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new slack returner based on incoming webhooks #50879
Conversation
What is the difference between salt/returners/slack_returner and this code? |
|
So can you keep them compatible? What else needs to be changed in salt to work with the new API? |
Do you mean, what changes are necessary to be made in If that is your question, I think that changes should be minimum. Just adding the parameter for the webhook url and based on whether a webhook is passed or an api_token choose the post method. But this returner is also different in the message format. |
Will this PR finally be approved? Or it is needed some change? |
Thank you very much, @thatch45 ! |
Sure thing, but I likely should not have merged this without tests. If you can get some tests in it would be greatly appreciated! |
What does this PR do?
Add a new slack returner based on incoming webhooks
Tests written?
No
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.