From 202991a26862e71db59402f08866ab71d116692c Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 19 Jan 2019 08:00:31 +0000 Subject: use `data["pusher"]["name"]` as `data["author"]["login"]` doesn't exist (github) --- modules/github/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/github/module.py b/modules/github/module.py index 02a0e962..b46d75b4 100644 --- a/modules/github/module.py +++ b/modules/github/module.py @@ -355,7 +355,7 @@ class Module(ModuleManager.BaseModule): for commit in data["commits"]: id = self._short_hash(commit["id"]) message = commit["message"].split("\n")[0].strip() - author = utils.irc.bold(commit["author"]["login"]) + author = utils.irc.bold(commit["pusher"]["name"]) url = self._short_url(COMMIT_URL % (full_name, id)) added = self._added(len(commit["added"])) -- cgit v1.3.1-10-gc9f91