Skip to content

Sometimes repo = null #113

@n0str

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions