From ebfeddf48cda197417b6cc111cae7094a20fe640 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 12 Mar 2021 16:29:18 +0100 Subject: [PATCH] advertise new repositories, ignore dual tag creation --- app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.py b/app.py index 4e8750e..5b262e5 100644 --- a/app.py +++ b/app.py @@ -81,6 +81,12 @@ def main(): return "IGN" if event == "create" and data["ref_type"] == "branch": + if data["ref"] not in ["master", "main", "trunk"]: + return "IGN" + url_user = make_url_user(data['sender']) + msg = f"{url_user} a créé un nouveau dépôt {url_repository}" + + if event == "create" and data["ref_type"] == "tag": return "IGN" if not msg: