Pass the repo reference to the Github event

This commit is contained in:
Fabio Manganiello 2020-08-22 12:25:55 +02:00
parent 2dc8fe9437
commit a9509fc959
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class GithubEvent(Event):
actor: Optional[Dict[str, str]] = None,
repo: Optional[Dict[str, str]] = None,
*args, **kwargs):
super().__init__(*args, actor=actor, event_type=event_type, created_at=created_at, **kwargs)
super().__init__(*args, actor=actor, event_type=event_type, repo=repo, created_at=created_at, **kwargs)
self.event_type = event_type
self.actor = Actor(**actor) if actor else None
self.repo = Repo(**repo) if repo else None