aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-19 21:34:36 +0000
committerGravatar jesopo2018-11-19 21:34:36 +0000
commitded49fe92ac835bb44e076797eab3248c6378720 (patch)
tree8e84323d480970bc8a1a14e73e2f6fb1bd192ce2 /modules/github.py
parentBlue-ify tag/branch for `create` event (diff)
signature
But blue-ification on branch/tag name, not on "branch"/"tag"
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py
index 5078939e..d79e9f31 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -212,8 +212,8 @@ class Module(ModuleManager.BaseModule):
url)]
def create(self, event, full_name, data):
- ref = data["ref"]
- type = utils.irc.color(data["ref_type"], utils.consts.BLUE)
+ ref = utils.irc.color(data["ref"], utils.consts.BLUE)
+ type = data["ref_type"]
sender = utils.irc.bold(data["sender"]["login"])
url = CREATE_URL % (full_name, ref)
return ["%s created a %s: %s - %s" % (sender, type, ref, url)]