Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielraeder committed Apr 11, 2024
1 parent 0d33225 commit 752b188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ It will save all phrases without translation in a JSON file, with the URL as the
}
```

It updates README.md!
It updates README.md

### Ignoring strings

Expand Down
10 changes: 4 additions & 6 deletions send_slack_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ def send_slack_notification(message, assignee, origin_repo):
if webhook_url is None:
print("SLACK_WEBHOOK_URL environment variable is not set.")
sys.exit(1)
data = {"Message": message, "Assignee": assignee, "Origin_Repo": origin_repo}
data = {"Message": "message", "Assignee": "assignee", "Origin_Repo": "origin_repo"}
print(data)
headers = {"Content-type": "application/json"}
response = requests.post(webhook_url, json=data, headers=headers)
if response.status_code == 200:
print("Notification sent successfully.")
else:
print(f"Failed to send notification. Status code: {response.status_code}")
print("Response content:", response.content.decode("utf-8"))

print(f"Status code: {response.status_code}")
print("Response content:", response.content.decode("utf-8"))


if __name__ == "__main__":
Expand Down

0 comments on commit 752b188

Please sign in to comment.