ignore branch-creating pushes with no commits
This commit is contained in:
parent
47fea7b77d
commit
98e19c407d
3
app.py
3
app.py
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue