-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add new google_chat module #48919
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 google_chat module #48919
Conversation
f08a1ed to
51719bc
Compare
cachedout
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! Before we merge this, would you mind adding information about this new feature to the release notes?
gtmanfred
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nitpick change.
Otherwise this looks good.
salt/modules/google_chat.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of importing salt.utils.http, please use __utils__['http.query']()
salt/modules/google_chat.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add print_function and unicode_literals to this __future__ import? We need that for PY2/PY3 compatibility. :)
51719bc to
3636897
Compare
garethgreenaway
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! 😁
|
@loverend If you could add this to the Fluorine release notes we can get this in pending tests. :) Thanks for this addition! |
873e105 to
fe615d8
Compare
|
Added to release notes. There wasn't a |
|
@loverend Some of your new tests are having some trouble here. Can you take a look? https://jenkinsci.saltstack.com/job/pr-kitchen-ubuntu1604-py2/job/PR-48919/5/ |
9904e4c to
ae0b5a3
Compare
To send a message directly to google chat via the api (not via a bot) you need to configure a webhook and post directly to that webhook url.
ae0b5a3 to
969d7d6
Compare
|
All tests now pass. I have addressed all comments. Please let me know if there are any further changes required. |
gtmanfred
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! thanks for this! looks great.
What does this PR do?
Add a new
google_chatmodule which allows you to send a message to a google chat room.What issues does this PR fix or reference?
N/A
New Behavior
Send a message to a google chat room
Tests written?
Yes
Commits signed with GPG?
Yes