From 959d6a067c9d23970ccbb08b331d3aa1b1ab64b9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 16 Apr 2019 10:24:55 +0100 Subject: [PATCH] Only show no-commit pushes when it's a force --- modules/github/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 7b72700a..bb342ae7 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -472,7 +472,7 @@ class Module(ModuleManager.BaseModule): if data["forced"]: forced = "%s " % utils.irc.color("force", utils.consts.RED) - if len(data["commits"]) == 0: + if len(data["commits"]) == 0 and data["forced"]: outputs.append( "%s %spushed to %s" % (author, forced, branch)) elif len(data["commits"]) <= 3: