def create_approval(channel, message):
    """
    Creates a dict that will be sent to send_message for approvals
    """
    return {
        "text": (
            f":clock1: Pipeline {message['approval']['pipelineName']} "
            f"in {message['approval']['customData']} requires approval"
        ),
        "channel": channel,
        "attachments": [
            {
                "fallback": f"Approve or Deny Deployment at {message['consoleLink']}",
                "actions": [
                    {
                        "type": "button",
                        "text": "Approve or Deny Deployment",
                        "url": str(message["consoleLink"])
                    }
                ]
            }
        ]
    }