Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielraeder committed Apr 11, 2024
1 parent 752b188 commit 0e98e63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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
3 changes: 2 additions & 1 deletion send_slack_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

def send_slack_notification(message, assignee, origin_repo):
webhook_url = os.environ.get("SLACK_WEBHOOK_URL")
print(webhook_url)
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)
Expand Down

0 comments on commit 0e98e63

Please sign in to comment.