mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Sync GithubIntegration __init__ arguments with github.Github (#2556)
Github and GithubIntegration now both support the same (full) set of Requester arguments. Creating a Github instance for a Github App Installation coming from GithubIntegration uses the same Requester arguments (except for auth).
This commit is contained in:
@@ -60,6 +60,9 @@ class Installation(github.GithubObject.NonCompletableGithubObject):
|
||||
def __repr__(self):
|
||||
return self.get__repr__({"id": self._id.value})
|
||||
|
||||
def get_github_for_installation(self):
|
||||
return github.Github(**self._requester.kwargs)
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user