From 36fb3394805422620da95fe6de5f8ebd03672c92 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 24 Mar 2019 11:59:29 +0100 Subject: [PATCH] Use a different message if unity is being updated instead of master --- webserver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"]}' \