MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / _get_installed_app

Method _get_installed_app

github/GithubIntegration.py:236–246  ·  view source on GitHub ↗

Get installation for the given URL.

(self, url: str)

Source from the content-addressed store, hash-verified

234 }
235
236 def _get_installed_app(self, url: str) -> Installation:
237 """
238 Get installation for the given URL.
239 """
240 headers, response = self.__requester.requestJsonAndCheck("GET", url, headers=self._get_headers())
241
242 return Installation(
243 requester=self.__requester,
244 headers=headers,
245 attributes=response,
246 )
247
248 @deprecated(
249 "Use github.Github(auth=github.Auth.AppAuth), github.Auth.AppAuth.token or github.Auth.AppAuth.create_jwt(expiration) instead"

Callers 5

get_installationMethod · 0.95
get_org_installationMethod · 0.95
get_repo_installationMethod · 0.95
get_user_installationMethod · 0.95
get_app_installationMethod · 0.95

Calls 3

_get_headersMethod · 0.95
InstallationClass · 0.90
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected