GitHub: Fix bug with events type where payload['repository']['name'] is named payload['repository']['login'].
parent
f21f9aa079
commit
6ab60653e0
|
@ -206,8 +206,7 @@ class GitHub(callbacks.Plugin):
|
||||||
return ircmsgs.privmsg(channel, s)
|
return ircmsgs.privmsg(channel, s)
|
||||||
|
|
||||||
def onPayload(self, headers, payload):
|
def onPayload(self, headers, payload):
|
||||||
repo = '%s/%s' % (payload['repository']['owner']['name'],
|
repo = payload['repository']['full_name']
|
||||||
payload['repository']['name'])
|
|
||||||
event = headers['X-GitHub-Event']
|
event = headers['X-GitHub-Event']
|
||||||
announces = self._load()
|
announces = self._load()
|
||||||
if repo not in announces:
|
if repo not in announces:
|
||||||
|
|
Loading…
Reference in New Issue