colorise ref for delete event, same as for create event

This commit is contained in:
jesopo 2019-06-22 22:42:52 +01:00
parent 7d49826b1a
commit 2f4475a70f

View file

@ -688,9 +688,10 @@ class Module(ModuleManager.BaseModule):
def delete(self, full_name, data): def delete(self, full_name, data):
ref = data["ref"] ref = data["ref"]
ref_color = utils.irc.color(ref, COLOR_BRANCH)
type = data["ref_type"] type = data["ref_type"]
sender = utils.irc.bold(data["sender"]["login"]) sender = utils.irc.bold(data["sender"]["login"])
return ["%s deleted a %s: %s" % (sender, type, ref)] return ["%s deleted a %s: %s" % (sender, type, ref_color)]
def release(self, full_name, data): def release(self, full_name, data):
action = data["action"] action = data["action"]