Show user login not user name (e.g. show username not display name) for

commits (github)
This commit is contained in:
jesopo 2019-01-19 07:23:35 +00:00
parent baeff58539
commit 0f9592063e

View file

@ -337,8 +337,7 @@ class Module(ModuleManager.BaseModule):
for commit in data["commits"]: for commit in data["commits"]:
id = self._short_hash(commit["id"]) id = self._short_hash(commit["id"])
message = commit["message"].split("\n")[0].strip() message = commit["message"].split("\n")[0].strip()
author = commit["author"]["name"] or commit["author"]["login"] author = utils.irc.bold(commit["author"]["login"])
author = utils.irc.bold(author)
url = self._short_url(COMMIT_URL % (full_name, id)) url = self._short_url(COMMIT_URL % (full_name, id))
added = self._added(len(commit["added"])) added = self._added(len(commit["added"]))