ignore branch deletions and release updates

This commit is contained in:
Lephenixnoir 2021-03-22 18:55:31 +01:00
parent c32760a5e4
commit 8004351098
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 9 additions and 0 deletions

9
app.py
View File

@ -94,6 +94,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 == "push" and all(c == '0' for c in data["after"]):
return "IGN"
if event == "pull_request" and data["action"] in ["assigned", "synchronized"]:
return "IGN"
@ -106,6 +109,12 @@ def main():
if event == "issue_comment":
return "IGN"
if event == "delete":
return "IGN"
if event == "release" and data["action"] == "updated":
return "IGN"
if not msg:
msg = f"Événement {event}"
if "repository" in data: