(webhook: str, version: str)
Post to #ops-announce, #bento channels
    about the release
Post to #ops-announce, #bento channels
    about the release
Post to #ops - announce #bento channels about the release
def main(webhook: str, version: str) -> None:
    """
    Post to #ops-announce, #bento channels
    about the release
  """
    try:
        headers = headers = {"content-type": "application/json"}
        data = get_post_data(version)
        resp = requests.post(webhook, json=data, headers=headers)
        if resp.status_code == requests.codes.ok:
            print("Successfully posted")
        else:
            print("Failed to post to slack")
    except Exception:
        print("Failed to post to slack")
def main ( webhook : str , version : str ) -> None : try : headers = headers = { "content-type" : "application/json" } data = get_post_data ( version ) resp = requests . post ( webhook , json = data , headers = headers ) if resp . status_code == requests . codes . ok : print ( "Successfully posted" ) else : print ( "Failed to post to slack" ) except Exception : print ( "Failed to post to slack" )