diff options
| author | 2019-04-16 10:24:55 +0100 | |
|---|---|---|
| committer | 2019-04-16 10:24:55 +0100 | |
| commit | 959d6a067c9d23970ccbb08b331d3aa1b1ab64b9 (patch) | |
| tree | 3235ac8cfa1bb0517fb4326d7e19d4892932ac2a /modules/github | |
| parent | Show 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__.py | 2 |
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: |
