ignore repository deletions

This commit is contained in:
Lephenixnoir 2023-03-25 23:45:28 +01:00
parent 2fad6de2b6
commit 431d91ab9e
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 0 deletions

3
app.py
View File

@ -114,6 +114,9 @@ def main():
url_user = make_url_user(data['sender'])
msg = f"{url_user} a créé un nouveau dépôt {url_repository}"
if event == "repository" and data["action"] == "deleted":
return "IGN"
if event == "push" and all(c == '0' for c in data["after"]):
return "IGN"