Skip to content

Sometimes repo = null #113

Description

@n0str
  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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions