aboutsummaryrefslogtreecommitdiff
path: root/modules/github
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-19 07:23:35 +0000
committerGravatar jesopo2019-01-19 07:23:35 +0000
commit0f9592063ee923a6cac4bcb74305b2e8652b24b6 (patch)
treecbd9378d06f379c5d07ce4955e783e082f3b45bf /modules/github
parentFix incorrect indentation level in Logging.py (diff)
signature
Show user `login` not user `name` (e.g. show username not display name) for
commits (github)
Diffstat (limited to 'modules/github')
-rw-r--r--modules/github/module.py3
1 files changed, 1 insertions, 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"]))