diff options
| author | 2018-11-18 10:27:19 +0000 | |
|---|---|---|
| committer | 2018-11-18 10:27:19 +0000 | |
| commit | fd805a07dbc7b31e0e6d4008c310a50ad1f5f94a (patch) | |
| tree | 7946f115821ae43f7358743ceb60c1415079c9dd /modules/github.py | |
| parent | Don't 404 when a repo is hooked in to but a specific event type isn't listened (diff) | |
| signature | ||
Make branch names blue AND bold! (github.py)
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 5 |
1 files changed, 3 insertions, 2 deletions
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"]) |
