From 9f086d56a4cb30e35e59a0e5f8b6b591069902c7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 17 Nov 2018 20:33:23 +0000 Subject: [PATCH] Only show first line of commit message --- modules/github.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/github.py b/modules/github.py index 76eb6b7d..1de730fa 100644 --- a/modules/github.py +++ b/modules/github.py @@ -86,8 +86,7 @@ class Module(ModuleManager.BaseModule): if len(data["commits"]) <= 3: for commit in data["commits"]: id = self._short_hash(commit["id"]) - message = commit["message"].split("\n") - message = "".join(line.strip() for line in message) + message = commit["message"].split("\n")[0].strip() author = commit["author"]["name"] or commit["author"]["login"] author = utils.irc.bold(author) url = COMMIT_URL % (full_name, id)