From fd805a07dbc7b31e0e6d4008c310a50ad1f5f94a Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 18 Nov 2018 10:27:19 +0000 Subject: Make branch names blue AND bold! (github.py) --- modules/github.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/github.py') diff --git a/modules/github.py b/modules/github.py index 3fd06627..56a9d06a 100644 --- a/modules/github.py +++ b/modules/github.py @@ -113,8 +113,9 @@ class Module(ModuleManager.BaseModule): def push(self, event, full_name, data): outputs = [] - branch = utils.irc.color(data["ref"].split("/", 2)[2], - utils.consts.BLUE) + branch = data["ref"].split("/", 2)[2] + branch = utils.irc.bold(utils.irc.color(branch, utils.consts.BLUE)) + if len(data["commits"]) <= 3: for commit in data["commits"]: id = self._short_hash(commit["id"]) -- cgit v1.3.1-10-gc9f91