Skip to content

Commit

Permalink
Merge pull request #11 from fedora-infra/feature/payload-changes
Browse files Browse the repository at this point in the history
Careful with the repo owner
  • Loading branch information
ralphbean committed Dec 10, 2014
2 parents bded7f0 + 3c08302 commit 9f2de85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github2fedmsg/views/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def build_fas_lookup(payload):
usernames.add(payload['forkee']['owner']['login'])

if 'repository' in payload:
usernames.add(payload['repository']['owner']['login'])
if 'login' in payload['repository']['owner']:
usernames.add(payload['repository']['owner']['login'])

# Take all that, and roll it up into a dict mapping those to FAS
mapping = {}
Expand Down

0 comments on commit 9f2de85

Please sign in to comment.