From 98e19c407d568b12bf227419f5edfee91a82f36d Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 11 Mar 2022 16:11:12 +0000 Subject: [PATCH] ignore branch-creating pushes with no commits --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 18d1919..0c94c17 100644 --- a/app.py +++ b/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"