INNER CODE UNIT · Python
get_github_service
hunvreus/devpush · app/dependencies.py:28
def get_github_service() -> GitHubService:
settings = get_settings()
return GitHubService(
client_id=settings.github_app_client_id,
client_secret=settings.github_app_client_secret,
app_id=settings.github_app_id,
private_key=settings.github_app_private_key,
)
@lru_cache
def get_github_installation_service() -> GitHubInstallationService:
return GitHubInstallationService(get_github_service())
@lru_cache
def get_github_oauth_client() -> OAuth:
settings = get_settings()