ignore branch deletions and release updates
This commit is contained in:
parent
c32760a5e4
commit
8004351098
9
app.py
9
app.py
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue