Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes repo = null #113

Open
n0str opened this issue Feb 20, 2022 · 0 comments
Open

Sometimes repo = null #113

n0str opened this issue Feb 20, 2022 · 0 comments
Assignees
Labels

Comments

@n0str
Copy link
Member

n0str commented Feb 20, 2022

  1. https://github.com/codex-bot/github/blob/master/github/data_types/branch.py
  2. https://github.com/codex-bot/github/blob/master/github/data_types/repository.py
# Who merged and sends
        self.repo = None
        if 'repo' in data:
            self.repo = Repository(data['repo'])

In the webhook data payload.head.user.repo == null
so, data['repo'] == None and we initiate Repository(None)

@n0str n0str added the bug label Feb 20, 2022
@sirtimrod sirtimrod self-assigned this Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants