Files
PyGithub/github/CheckSuite.pyi
T
Dhruv ManilawalaandRaju Subramanian 6d501b286e Add support for Check Suites (#1764)
* Add initial support for Check Suites
* Add API call detail in CheckSuite.rerequest
* Update Accept header with general instead of preview
* Add 'get check runs' endpoint for CheckSuite with stubs
* Add create check suite endpoint with stub
* Update CheckSuite tests with creat check suite endpoint
* Add update check suites preferences endpoint
* Add repository preferences object and stub file
* Add update check suite preferences tests

Needed for #1621

Co-authored-by: Raju Subramanian <coder@mahesh.net>
2020-11-30 16:03:07 +11:00

52 lines
1.5 KiB
Python

from datetime import datetime
from typing import Any, Dict, List
from github.CheckRun import CheckRun
from github.GitCommit import GitCommit
from github.GithubApp import GithubApp
from github.GithubObject import CompletableGithubObject
from github.PaginatedList import PaginatedList
from github.PullRequest import PullRequest
from github.Repository import Repository
class CheckSuite(CompletableGithubObject):
def __repr__(self) -> str: ...
def _initAttributes(self) -> None: ...
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
@property
def after(self) -> str: ...
@property
def app(self) -> GithubApp: ...
@property
def before(self) -> str: ...
@property
def check_runs_url(self) -> str: ...
@property
def conclusion(self) -> str: ...
@property
def created_at(self) -> datetime: ...
@property
def head_branch(self) -> str: ...
@property
def head_commit(self) -> GitCommit: ...
@property
def head_sha(self) -> str: ...
@property
def id(self) -> int: ...
@property
def latest_check_runs_count(self) -> int: ...
@property
def pull_requests(self) -> List[PullRequest]: ...
@property
def repository(self) -> Repository: ...
@property
def status(self) -> str: ...
@property
def updated_at(self) -> datetime: ...
@property
def url(self) -> str: ...
def rerequest(self) -> bool: ...
def get_check_runs(
self, check_name: str, status: str, filter: str
) -> PaginatedList[CheckRun]: ...