octomachinery.github.models.checks_api_requests module

Models representing objects in GitHub Checks API.

class octomachinery.github.models.checks_api_requests.NewCheckRequest(head_branch, head_sha, name, details_url: Optional[str] = None, external_id: Optional[str] = None, status: Optional[str] = 'queued', started_at: Optional[str] = None, conclusion: Optional[str] = None, completed_at: Optional[str] = None, output=None, actions=[])[source]

Bases: octomachinery.github.models.checks_api_requests.NewCheckRequestMixin, octomachinery.github.models.checks_api_requests.BaseCheckRequestMixin

Checks API new check request.

head_branch = None
head_sha = None
class octomachinery.github.models.checks_api_requests.UpdateCheckRequest(name, details_url: Optional[str] = None, external_id: Optional[str] = None, status: Optional[str] = 'queued', started_at: Optional[str] = None, conclusion: Optional[str] = None, completed_at: Optional[str] = None, output=None, actions=[])[source]

Bases: octomachinery.github.models.checks_api_requests.BaseCheckRequestMixin

Checks API update check request.

actions = None
completed_at = None
conclusion = None
details_url = None
external_id = None
name = None
output = None
started_at = None
status = None
octomachinery.github.models.checks_api_requests.to_gh_query(req)[source]

Convert Checks API request object into a dict.