octomachinery.github.models package#
Submodules#
- octomachinery.github.models.action_outcomes module
- octomachinery.github.models.checks_api_requests module
- octomachinery.github.models.events module
- octomachinery.github.models.private_key module
- octomachinery.github.models.utils module
Module contents#
Models representing objects in GitHub API.
- class octomachinery.github.models.GitHubAppInstallation(id, app_id, app_slug, created_at, updated_at, account: Dict[str, Any], events: List[str], permissions: Dict[str, Any], repository_selection, single_file_name: Optional[str], target_id, target_type: str, access_tokens_url, html_url, repositories_url, suspended_at: Optional[str], suspended_by: Optional[str], has_multiple_single_files: Optional[bool], single_file_paths: List[str])[source]#
Bases:
object
Represents a GitHub App installed into a user or an organization profile.
It has its own ID for installation which is a unique combo of an app and a profile (user or org).
- class octomachinery.github.models.GitHubInstallationAccessToken(token, expires_at, permissions: Dict[str, str], repository_selection, repositories=[], single_file: Optional[str] = None, has_multiple_single_files: Optional[bool] = False, single_file_paths: Optional[List[str]] = None)[source]#
Bases:
object
Struct for installation access token response from GitHub API.
- property expired#
Check whether this token has expired already.