-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adds Slack notifications about releases, upgrades to nextmv-py v0.11.1 #77
Conversation
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.
Non-blocking comments
.nextmv/release/main.py
Outdated
@@ -241,5 +251,21 @@ def bump_marketplace_version( | |||
return f"v{major}.{minor}.{patch}" | |||
|
|||
|
|||
def notify_slack(url: str, app: str, version: str, marketplace_version: str): |
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.
The return type hint should be None
response = requests.post( | ||
url, | ||
json={ | ||
"text": f"Release notification - community-apps/{app} {version} / marketplace {marketplace_version}", |
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.
I think we should either only notify for prod or log the environment that is being released in here.
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.
Yeah, totally. I somehow missed the distinction here. The parameter is optional, so, I will simply drop it in the workflow if not targeting prod.
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.
Thanks for noticing! 🤗
This will need a fix for |
5c0cec7
to
95f368a
Compare
Description
Added Slack notifications for improving internal transparency about ongoing releases.
Changes
--slack-url
parameter to release workflow commandnotify_slack
function to send release notifications to Slackrequests>=2.26.0
inrequirements.txt
for HTTP requests to Slack Webhooksnextmv-py==v0.11.1