ignore branch-creating pushes with no commits

This commit is contained in:
Lephenixnoir 2022-03-11 16:11:12 +00:00
parent 47fea7b77d
commit 98e19c407d
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 0 deletions

3
app.py
View File

@ -110,6 +110,9 @@ def main():
if event == "push" and all(c == '0' for c in data["after"]):
return "IGN"
if event == "push" and all(c == '0' for c in data["before"]) and data["commits"] == []:
return "IGN"
if event == "pull_request" and data["action"] in ["assigned", "closed", "synchronized", "edited"]:
return "IGN"