advertise new repositories, ignore dual tag creation

This commit is contained in:
Lephenixnoir 2021-03-12 16:29:18 +01:00
parent f46af7cfc5
commit ebfeddf48c
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 6 additions and 0 deletions

6
app.py
View File

@ -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: