Return semi-helpful information to github webhooks (github)
This commit is contained in:
parent
d772eaf36e
commit
42e2596c9b
1 changed files with 5 additions and 2 deletions
|
@ -306,7 +306,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
targets.append([server, channel])
|
targets.append([server, channel])
|
||||||
|
|
||||||
if not targets:
|
if not targets:
|
||||||
return "" if repo_hooked else None
|
if not repo_hooked:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return {"state": "success", "deliveries": 0}
|
||||||
|
|
||||||
outputs = None
|
outputs = None
|
||||||
if github_event == "push":
|
if github_event == "push":
|
||||||
|
@ -353,7 +356,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
hide_prefix=channel.get_setting(
|
hide_prefix=channel.get_setting(
|
||||||
"github-hide-prefix", False))
|
"github-hide-prefix", False))
|
||||||
|
|
||||||
return ""
|
return {"state": "success", "deliveries": len(targets)}
|
||||||
|
|
||||||
def _prevent_highlight(self, channel, s):
|
def _prevent_highlight(self, channel, s):
|
||||||
for user in channel.users:
|
for user in channel.users:
|
||||||
|
|
Loading…
Reference in a new issue