aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-16 10:24:55 +0100
committerGravatar jesopo2019-04-16 10:24:55 +0100
commit959d6a067c9d23970ccbb08b331d3aa1b1ab64b9 (patch)
tree3235ac8cfa1bb0517fb4326d7e19d4892932ac2a /modules/github
parentShow a push event even when there's no commits in it (diff)
signature
Only show no-commit pushes when it's a force
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/__init__.py2
1 files changed, 1 insertions, 1 deletions
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: