octomachinery.github.api.app_client module

GitHub App API client.

class octomachinery.github.api.app_client.GitHubApp(config: octomachinery.github.config.app.GitHubAppIntegrationConfig)[source]

Bases: contextlib.AbstractAsyncContextManager

GitHub API wrapper.

add_installation(event)[source]

Retrieve an installation creds from store.

event_from_request(request)[source]

Get an event object out of HTTP request.

get_installation(event)[source]

Retrieve an installation creds from store.

get_installations()[source]

Retrieve all installations with access tokens via API.

gh_jwt

Generate app’s JSON Web Token, valid for 60 seconds.

github_app_client

The GitHub App client with an async CM interface.

pre_process_webhook_event(event)[source]

Get an event object out of HTTP request.