Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-664

Add Slack notification to weekly

    XMLWordPrintable

    Details

    • 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

      Description

      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()
      

        Attachments

          Activity

            People

            • Assignee:
              price price
              Reporter:
              price price
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: