use pusher 'login' not 'name' - gitea doesn't have 'name'

This commit is contained in:
jesopo 2019-06-24 17:31:45 +01:00
parent a1cc2e778c
commit 280fd68f7f

View file

@ -131,7 +131,7 @@ class Gitea(object):
outputs = [] outputs = []
branch = data["ref"].split("/", 2)[2] branch = data["ref"].split("/", 2)[2]
branch = utils.irc.color(branch, colors.COLOR_BRANCH) branch = utils.irc.color(branch, colors.COLOR_BRANCH)
author = utils.irc.bold(data["pusher"]["name"]) author = utils.irc.bold(data["pusher"]["login"])
if len(data["commits"]) <= 3: if len(data["commits"]) <= 3:
for commit in data["commits"]: for commit in data["commits"]: