Skip to content

Commit

Permalink
fix payload format
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrychu committed Jan 17, 2024
1 parent 0fe6809 commit 15d8d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def send_slack_message(data: Dict[str, str]) -> str:
Returns: request response
"""
payload = {"text": data}
payload = {"text": json.dumps(data)}
payload_json = json.dumps(payload)
headers = {"Content-type": "application/json"}
response = requests.request(
Expand Down

0 comments on commit 15d8d8e

Please sign in to comment.