From 0f9592063ee923a6cac4bcb74305b2e8652b24b6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 19 Jan 2019 07:23:35 +0000 Subject: [PATCH] Show user `login` not user `name` (e.g. show username not display name) for commits (github) --- modules/github/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/github/module.py b/modules/github/module.py index 5fed25dd..3edef4e8 100644 --- a/modules/github/module.py +++ b/modules/github/module.py @@ -337,8 +337,7 @@ class Module(ModuleManager.BaseModule): for commit in data["commits"]: id = self._short_hash(commit["id"]) message = commit["message"].split("\n")[0].strip() - author = commit["author"]["name"] or commit["author"]["login"] - author = utils.irc.bold(author) + author = utils.irc.bold(commit["author"]["login"]) url = self._short_url(COMMIT_URL % (full_name, id)) added = self._added(len(commit["added"]))