From 6c714abeddba533369daae6d1bb08448ec4659b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Fri, 1 Mar 2024 19:30:02 +0100 Subject: [PATCH] Add a button to go to the github page --- ntfy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ntfy.py b/ntfy.py index bcaca2c..37933a7 100644 --- a/ntfy.py +++ b/ntfy.py @@ -86,7 +86,12 @@ def send_to_ntfy(releases, auth, url): (app_name, version_number, changelog)) conn.commit() - headers = {"Authorization": f"Basic {auth}", "Content-Type": "text/plain"} + headers = { + "Authorization": f"Basic {auth}", + "Title": f"New version for {app_name}", + "Priority": "urgent", + "Content-Type": "text/plain", + "Actions": f"view, Update {app_name}, {app_url}, clear=true"} response = requests.post(f"{url}", headers=headers, data=message) if response.status_code == 200: logger.info(f"Message envoyé à Ntfy pour {app_name}")