But blue-ification on branch/tag name, not on "branch"/"tag"

This commit is contained in:
jesopo 2018-11-19 21:34:36 +00:00
parent e5ae963193
commit ded49fe92a

View file

@ -212,8 +212,8 @@ class Module(ModuleManager.BaseModule):
url)] url)]
def create(self, event, full_name, data): def create(self, event, full_name, data):
ref = data["ref"] ref = utils.irc.color(data["ref"], utils.consts.BLUE)
type = utils.irc.color(data["ref_type"], utils.consts.BLUE) type = data["ref_type"]
sender = utils.irc.bold(data["sender"]["login"]) sender = utils.irc.bold(data["sender"]["login"])
url = CREATE_URL % (full_name, ref) url = CREATE_URL % (full_name, ref)
return ["%s created a %s: %s - %s" % (sender, type, ref, url)] return ["%s created a %s: %s - %s" % (sender, type, ref, url)]