aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-19 08:00:31 +0000
committerGravatar jesopo2019-01-19 08:00:31 +0000
commit202991a26862e71db59402f08866ab71d116692c (patch)
tree23fd79aa74532ba80c3e742ae400971171c0cf31
parentClarify `[hook]` and add sections for `branches` subcommand (github) (diff)
signature
use `data["pusher"]["name"]` as `data["author"]["login"]` doesn't exist (github)
-rw-r--r--modules/github/module.py2
1 files changed, 1 insertions, 1 deletions
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"]))