Only show first line of commit message

This commit is contained in:
jesopo 2018-11-17 20:33:23 +00:00
parent f46015d9d8
commit 9f086d56a4

View file

@ -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)