-
Type:
Story
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:2
It would be helpful to post on Slack the status of the weekly build and processing run. Apparently, it's as simple as:
def post_message_to_slack(text, blocks=None):
return requests.post('https://slack.com/api/chat.postMessage', {
'token': slack_token,
'channel': slack_channel,
'text': text,
'icon_url': slack_icon_url,
'username': slack_user_name,
'blocks': json.dumps(blocks) if blocks else None
}).json()