aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-27 14:52:10 +0000
committerGravatar jesopo2019-02-27 14:52:10 +0000
commit52092cfe283198f435eb739e501c16adbfb4ae0c (patch)
treedac44993bf24e4d7a86bdb8a80a561fbb777ad6a /modules
parentShow sender of an issue_comment, not the original commenter (for edits) (diff)
signature
Make github-hide-prefix apply to !gt as well
Diffstat (limited to 'modules')
-rw-r--r--modules/github/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 9159cd16..e2098783 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -175,6 +175,10 @@ class Module(ModuleManager.BaseModule):
:usage: events <hook> [category [category ...]]
:usage: branches <hook> [branch [branch ...]]
"""
+ if event["target"].get_setting("github-hide-prefix", False)):
+ event["stdout"].hide_prefix()
+ event["stderr"].hide_prefix()
+
all_hooks = event["target"].get_setting("github-hooks", {})
hook_name = None
existing_hook = None