diff --git a/webserver.py b/webserver.py index 8b5ddda0..89c440b7 100644 --- a/webserver.py +++ b/webserver.py @@ -392,7 +392,10 @@ def hooks_github(): abort(400) return # TODO: add secret check - message = f"🐙 Nuovi aggiornamenti a Royalnet:\n" + if j["ref"] == "refs/heads/master": + message = f"🐙 Nuovi aggiornamenti a Royalnet master:\n" + if j["ref"] == "refs/heads/unity": + message = f"🐙 Progresso di Royalnet unity:\n" for commit in j.get("commits", []): if commit["distinct"]: message += f'{commit["message"]}' \