From 6d501b286e04f324bc87532003f0564624981ecb Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Mon, 30 Nov 2020 10:33:07 +0530 Subject: [PATCH] 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 --- github/CheckSuite.py | 275 ++++++++++++++++++ github/CheckSuite.pyi | 51 ++++ github/Commit.py | 29 ++ github/Commit.pyi | 6 + github/Repository.py | 53 ++++ github/Repository.pyi | 38 ++- github/RepositoryPreferences.py | 59 ++++ github/RepositoryPreferences.pyi | 12 + tests/CheckSuite.py | 174 +++++++++++ tests/ReplayData/CheckSuite.setUp.txt | 55 ++++ .../CheckSuite.testCheckSuiteRerequest.txt | 22 ++ .../CheckSuite.testCreateCheckSuite.txt | 11 + .../CheckSuite.testGetCheckRuns.txt | 22 ++ ...uite.testGetCheckRunsFilterByCheckName.txt | 22 ++ ...ckSuite.testGetCheckRunsFilterByFilter.txt | 22 ++ ...ckSuite.testGetCheckRunsFilterByStatus.txt | 22 ++ .../CheckSuite.testGetCheckSuitesForRef.txt | 22 ++ ....testGetCheckSuitesForRefFilterByAppId.txt | 22 ++ ...tGetCheckSuitesForRefFilterByCheckName.txt | 22 ++ ...Suite.testUpdateCheckSuitesPreferences.txt | 22 ++ 20 files changed, 956 insertions(+), 5 deletions(-) create mode 100644 github/CheckSuite.py create mode 100644 github/CheckSuite.pyi create mode 100644 github/RepositoryPreferences.py create mode 100644 github/RepositoryPreferences.pyi create mode 100644 tests/CheckSuite.py create mode 100644 tests/ReplayData/CheckSuite.setUp.txt create mode 100644 tests/ReplayData/CheckSuite.testCheckSuiteRerequest.txt create mode 100644 tests/ReplayData/CheckSuite.testCreateCheckSuite.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckRuns.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckRunsFilterByCheckName.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckRunsFilterByFilter.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckRunsFilterByStatus.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckSuitesForRef.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByAppId.txt create mode 100644 tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByCheckName.txt create mode 100644 tests/ReplayData/CheckSuite.testUpdateCheckSuitesPreferences.txt diff --git a/github/CheckSuite.py b/github/CheckSuite.py new file mode 100644 index 00000000..fb990fdf --- /dev/null +++ b/github/CheckSuite.py @@ -0,0 +1,275 @@ +# -*- coding: utf-8 -*- + +############################ Copyrights and license ############################ +# # +# Copyright 2020 Raju Subramanian # +# # +# This file is part of PyGithub. # +# http://pygithub.readthedocs.io/ # +# # +# PyGithub is free software: you can redistribute it and/or modify it under # +# the terms of the GNU Lesser General Public License as published by the Free # +# Software Foundation, either version 3 of the License, or (at your option) # +# any later version. # +# # +# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # +# details. # +# # +# You should have received a copy of the GNU Lesser General Public License # +# along with PyGithub. If not, see . # +# # +################################################################################ + +import github + + +class CheckSuite(github.GithubObject.CompletableGithubObject): + """ + This class represents check suites. The reference can be found here https://docs.github.com/en/rest/reference/checks#check-suites + """ + + def __repr__(self): + return self.get__repr__({"id": self._id.value, "url": self._url.value}) + + @property + def after(self): + """ + :type: string + """ + self._completeIfNotSet(self._after) + return self._after.value + + @property + def app(self): + """ + :type: :class:`github.GithubApp.GithubApp` + """ + self._completeIfNotSet(self._app) + return self._app.value + + @property + def before(self): + """ + :type: string + """ + self._completeIfNotSet(self._before) + return self._before.value + + @property + def check_runs_url(self): + """ + :type: string + """ + self._completeIfNotSet(self._check_runs_url) + return self._check_runs_url.value + + @property + def conclusion(self): + """ + :type: string + """ + self._completeIfNotSet(self._conclusion) + return self._conclusion.value + + @property + def created_at(self): + """ + :type: datetime.datetime + """ + self._completeIfNotSet(self._created_at) + return self._created_at.value + + @property + def head_branch(self): + """ + :type: string + """ + self._completeIfNotSet(self._head_branch) + return self._head_branch.value + + @property + def head_commit(self): + """ + :type: :class:`github.GitCommit.GitCommit` + """ + self._completeIfNotSet(self._head_commit) + return self._head_commit.value + + @property + def head_sha(self): + """ + :type: string + """ + self._completeIfNotSet(self._head_sha) + return self._head_sha.value + + @property + def id(self): + """ + :type: int + """ + self._completeIfNotSet(self._id) + return self._id.value + + @property + def latest_check_runs_count(self): + """ + :type: int + """ + self._completeIfNotSet(self._latest_check_runs_count) + return self._latest_check_runs_count.value + + @property + def pull_requests(self): + """ + :type: list of :class:`github.PullRequest.PullRequest` + """ + self._completeIfNotSet(self._pull_requests) + return self._pull_requests.value + + @property + def repository(self): + """ + :type: :class:`github.Repository.Repository` + """ + self._completeIfNotSet(self._repository) + return self._repository.value + + @property + def status(self): + """ + :type: string + """ + self._completeIfNotSet(self._status) + return self._status.value + + @property + def updated_at(self): + """ + :type: datetime.datetime + """ + self._completeIfNotSet(self._updated_at) + return self._updated_at.value + + @property + def url(self): + """ + :type: string + """ + self._completeIfNotSet(self._url) + return self._url.value + + def rerequest(self): + """ + :calls: `POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest `_ + :rtype: bool + """ + request_headers = {"Accept": "application/vnd.github.v3+json"} + status, _, _ = self._requester.requestJson( + "POST", self.url + "/rerequest", headers=request_headers + ) + return status == 201 + + def get_check_runs( + self, + check_name=github.GithubObject.NotSet, + status=github.GithubObject.NotSet, + filter=github.GithubObject.NotSet, + ): + """ + :calls: `GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs `_ + :param check_name: string + :param status: string + :param filter: string + :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CheckRun.CheckRun` + """ + assert check_name is github.GithubObject.NotSet or isinstance( + check_name, str + ), check_name + assert status is github.GithubObject.NotSet or isinstance(status, str), status + assert filter is github.GithubObject.NotSet or isinstance(filter, str), filter + url_parameters = dict() + if check_name is not github.GithubObject.NotSet: + url_parameters["check_name"] = check_name + if status is not github.GithubObject.NotSet: + url_parameters["status"] = status + if status is not github.GithubObject.NotSet: + url_parameters["filter"] = filter + return github.PaginatedList.PaginatedList( + github.CheckRun.CheckRun, + self._requester, + self.url + "/check-runs", + url_parameters, + headers={"Accept": "application/vnd.github.v3+json"}, + list_item="check_runs", + ) + + def _initAttributes(self): + self._after = github.GithubObject.NotSet + self._app = github.GithubObject.NotSet + self._before = github.GithubObject.NotSet + self._check_runs_url = github.GithubObject.NotSet + self._conclusion = github.GithubObject.NotSet + self._created_at = github.GithubObject.NotSet + self._head_branch = github.GithubObject.NotSet + self._head_commit = github.GithubObject.NotSet + self._head_sha = github.GithubObject.NotSet + self._id = github.GithubObject.NotSet + self._latest_check_runs_count = github.GithubObject.NotSet + self._pull_requests = github.GithubObject.NotSet + self._repository = github.GithubObject.NotSet + self._status = github.GithubObject.NotSet + self._updated_at = github.GithubObject.NotSet + self._url = github.GithubObject.NotSet + + def _useAttributes(self, attributes): + if "after" in attributes: # pragma no branch + self._after = self._makeStringAttribute(attributes["after"]) + if "app" in attributes: # pragma no branch + self._app = self._makeClassAttribute( + github.GithubApp.GithubApp, attributes["app"] + ) + if "before" in attributes: # pragma no branch + self._before = self._makeStringAttribute(attributes["before"]) + if "check_runs_url" in attributes: # pragma no branch + self._check_runs_url = self._makeStringAttribute( + attributes["check_runs_url"] + ) + if "conclusion" in attributes: # pragma no branch + self._conclusion = self._makeStringAttribute(attributes["conclusion"]) + if "created_at" in attributes: # pragma no branch + self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) + if "head_branch" in attributes: # pragma no branch + self._head_branch = self._makeStringAttribute(attributes["head_branch"]) + if "head_commit" in attributes: # pragma no branch + # This JSON swaps the 'sha' attribute for an 'id' attribute. + # The GitCommit object only looks for 'sha' + if "id" in attributes["head_commit"]: + attributes["head_commit"]["sha"] = attributes["head_commit"]["id"] + self._head_commit = self._makeClassAttribute( + github.GitCommit.GitCommit, attributes["head_commit"] + ) + if "head_sha" in attributes: # pragma no branch + self._head_sha = self._makeStringAttribute(attributes["head_sha"]) + if "id" in attributes: # pragma no branch + self._id = self._makeIntAttribute(attributes["id"]) + if "latest_check_runs_count" in attributes: # pragma no branch + self._latest_check_runs_count = self._makeIntAttribute( + attributes["latest_check_runs_count"] + ) + if "pull_requests" in attributes: # pragma no branch + self._pull_requests = self._makeListOfClassesAttribute( + github.PullRequest.PullRequest, attributes["pull_requests"] + ) + if "repository" in attributes: # pragma no branch + self._repository = self._makeClassAttribute( + github.Repository.Repository, attributes["repository"] + ) + if "status" in attributes: # pragma no branch + self._status = self._makeStringAttribute(attributes["status"]) + if "updated_at" in attributes: # pragma no branch + self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) + if "url" in attributes: # pragma no branch + self._url = self._makeStringAttribute(attributes["url"]) diff --git a/github/CheckSuite.pyi b/github/CheckSuite.pyi new file mode 100644 index 00000000..dd84c396 --- /dev/null +++ b/github/CheckSuite.pyi @@ -0,0 +1,51 @@ +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]: ... diff --git a/github/Commit.py b/github/Commit.py index cb738586..0e39a9ae 100644 --- a/github/Commit.py +++ b/github/Commit.py @@ -33,6 +33,7 @@ ################################################################################ import github.CheckRun +import github.CheckSuite import github.CommitCombinedStatus import github.CommitComment import github.CommitStats @@ -293,6 +294,34 @@ class Commit(github.GithubObject.CompletableGithubObject): list_item="check_runs", ) + def get_check_suites( + self, app_id=github.GithubObject.NotSet, check_name=github.GithubObject.NotSet + ): + """ + :class: `GET /repos/:owner/:repo/commits/:ref/check-suites `_ + :param app_id: int + :param check_name: string + :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CheckSuite.CheckSuite` + """ + assert app_id is github.GithubObject.NotSet or isinstance(app_id, int), app_id + assert check_name is github.GithubObject.NotSet or isinstance( + check_name, str + ), check_name + parameters = dict() + if app_id is not github.GithubObject.NotSet: + parameters["app_id"] = app_id + if check_name is not github.GithubObject.NotSet: + parameters["check_name"] = check_name + request_headers = {"Accept": "application/vnd.github.v3+json"} + return github.PaginatedList.PaginatedList( + github.CheckSuite.CheckSuite, + self._requester, + self.url + "/check-suites", + parameters, + headers=request_headers, + list_item="check_suites", + ) + @property def _identity(self): return self.sha diff --git a/github/Commit.pyi b/github/Commit.pyi index f9fbdc1b..e672d632 100644 --- a/github/Commit.pyi +++ b/github/Commit.pyi @@ -1,6 +1,7 @@ from typing import Any, Dict, List, Union from github.CheckRun import CheckRun +from github.CheckSuite import CheckSuite from github.CommitCombinedStatus import CommitCombinedStatus from github.CommitComment import CommitComment from github.CommitStats import CommitStats @@ -41,6 +42,11 @@ class Commit(CompletableGithubObject): ) -> CommitStatus: ... @property def files(self) -> List[File]: ... + def get_check_suites( + self, + app_id: Union[_NotSetType, int], + check_name: Union[_NotSetType, str], + ) -> PaginatedList[CheckSuite]: ... def get_combined_status(self) -> CommitCombinedStatus: ... def get_comments(self) -> PaginatedList[CommitComment]: ... def get_statuses(self) -> PaginatedList[CommitStatus]: ... diff --git a/github/Repository.py b/github/Repository.py index 80aea878..94567bba 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -95,6 +95,7 @@ from deprecated import deprecated import github.Branch import github.CheckRun +import github.CheckSuite import github.Clones import github.Commit import github.CommitComment @@ -127,6 +128,7 @@ import github.PullRequest import github.Referrer import github.Repository import github.RepositoryKey +import github.RepositoryPreferences import github.SelfHostedActionsRunner import github.SourceImport import github.Stargazer @@ -3444,6 +3446,57 @@ class Repository(github.GithubObject.CompletableGithubObject): """ return self._hub("unsubscribe", event, callback, github.GithubObject.NotSet) + def create_check_suite(self, head_sha): + """ + :calls: `POST /repos/:owner/:repo/check-suites `_ + :param head_sha: string + :rtype: :class:`github.CheckSuite.CheckSuite` + """ + assert isinstance(head_sha, str), head_sha + headers, data = self._requester.requestJsonAndCheck( + "POST", + self.url + "/check-suites", + input={"head_sha": head_sha}, + ) + return github.CheckSuite.CheckSuite( + self._requester, headers, data, completed=True + ) + + def get_check_suite(self, check_suite_id): + """ + :calls: `GET /repos/:owner/:repo/check-suites/:check_suite_id `_ + :param check_suite_id: int + :rtype: :class:`github.CheckSuite.CheckSuite` + """ + assert isinstance(check_suite_id, int), check_suite_id + requestHeaders = {"Accept": "application/vnd.github.v3+json"} + headers, data = self._requester.requestJsonAndCheck( + "GET", + self.url + "/check-suites/" + str(check_suite_id), + headers=requestHeaders, + ) + return github.CheckSuite.CheckSuite( + self._requester, headers, data, completed=True + ) + + def update_check_suites_preferences(self, auto_trigger_checks): + """ + :calls: `PATCH /repos/:owner/:repo/check-suites/preferences `_ + :param auto_trigger_checks: list of dict + :rtype: :class:`github.RepositoryPreferences.RepositoryPreferences` + """ + assert all( + isinstance(element, dict) for element in auto_trigger_checks + ), auto_trigger_checks + headers, data = self._requester.requestJsonAndCheck( + "PATCH", + self.url + "/check-suites/preferences", + input={"auto_trigger_checks": auto_trigger_checks}, + ) + return github.RepositoryPreferences.RepositoryPreferences( + self._requester, headers, data, completed=True + ) + def _hub(self, mode, event, callback, secret): assert isinstance(mode, str), mode assert isinstance(event, str), event diff --git a/github/Repository.pyi b/github/Repository.pyi index 052fe6c1..92cbac66 100644 --- a/github/Repository.pyi +++ b/github/Repository.pyi @@ -4,6 +4,7 @@ from typing import Any, Dict, List, Optional, Union, overload from github.AuthenticatedUser import AuthenticatedUser from github.Branch import Branch from github.CheckRun import CheckRun +from github.CheckSuite import CheckSuite from github.Clones import Clones from github.Commit import Commit from github.CommitComment import CommitComment @@ -40,6 +41,7 @@ from github.PullRequest import PullRequest from github.PullRequestComment import PullRequestComment from github.Referrer import Referrer from github.RepositoryKey import RepositoryKey +from github.RepositoryPreferences import RepositoryPreferences from github.SelfHostedActionsRunner import SelfHostedActionsRunner from github.SourceImport import SourceImport from github.Stargazer import Stargazer @@ -110,9 +112,12 @@ class Repository(CompletableGithubObject): started_at: Union[_NotSetType, datetime] = ..., conclusion: Union[_NotSetType, str] = ..., completed_at: Union[_NotSetType, datetime] = ..., - output: Union[_NotSetType, Dict[str, Union[str, List[Dict[str, Union[str, int]]]]]] = ..., + output: Union[ + _NotSetType, Dict[str, Union[str, List[Dict[str, Union[str, int]]]]] + ] = ..., actions: Union[_NotSetType, List[Dict[str, str]]] = ..., ) -> CheckRun: ... + def create_check_suite(self, head_sha: str) -> CheckSuite: ... def create_deployment( self, ref: str, @@ -209,9 +214,26 @@ class Repository(CompletableGithubObject): ) -> Milestone: ... def create_project(self, name: str, body: str = ...) -> Project: ... @overload - def create_pull(self, title: str, body: str, base: str, head: str, maintainer_can_modify: Union[bool, _NotSetType] = _NotSetType(), draft: bool = False, issue: _NotSetType = _NotSetType()) -> PullRequest: ... + def create_pull( + self, + title: str, + body: str, + base: str, + head: str, + maintainer_can_modify: Union[bool, _NotSetType] = _NotSetType(), + draft: bool = False, + issue: _NotSetType = _NotSetType(), + ) -> PullRequest: ... @overload - def create_pull(self, title: _NotSetType, body: _NotSetType, base: str, head: str, maintainer_can_modify: _NotSetType, issue: Issue) -> PullRequest: ... + def create_pull( + self, + title: _NotSetType, + body: _NotSetType, + base: str, + head: str, + maintainer_can_modify: _NotSetType, + issue: Issue, + ) -> PullRequest: ... def create_repository_dispatch( self, event_type: str, client_payload: Dict[str, Any] ) -> bool: ... @@ -282,6 +304,7 @@ class Repository(CompletableGithubObject): def get_branch(self, branch: str) -> Branch: ... def get_branches(self) -> PaginatedList[Branch]: ... def get_check_run(self, check_run_id: int) -> CheckRun: ... + def get_check_suite(self, check_suite_id: int) -> CheckSuite: ... def get_clones_traffic( self, per: Union[str, _NotSetType] = ... ) -> Dict[str, Union[int, List[Clones]]]: ... @@ -408,7 +431,7 @@ class Repository(CompletableGithubObject): def get_release(self, id: Union[int, str]) -> GitRelease: ... def get_release_asset(self, id: int) -> GitReleaseAsset: ... def get_releases(self) -> PaginatedList[GitRelease]: ... - def get_self_hosted_runner(self, runner_id: int) -> SelfHostedActionsRunner: ... + def get_self_hosted_runner(self, runner_id: int) -> SelfHostedActionsRunner: ... def get_self_hosted_runners(self) -> PaginatedList[SelfHostedActionsRunner]: ... def get_source_import(self) -> SourceImport: ... def get_stargazers(self) -> PaginatedList[NamedUser]: ... @@ -433,6 +456,9 @@ class Repository(CompletableGithubObject): def get_workflows(self) -> PaginatedList[Workflow]: ... def get_workflow_run(self, id_: int) -> WorkflowRun: ... def get_workflow_runs(self) -> PaginatedList[WorkflowRun]: ... + def update_check_suites_preferences( + self, auto_trigger_checks: List[Dict[str, Union[bool, int]]] + ) -> RepositoryPreferences: ... @property def git_commits_url(self) -> str: ... @property @@ -517,7 +543,9 @@ class Repository(CompletableGithubObject): def remove_from_collaborators( self, collaborator: Union[str, NamedUser] ) -> None: ... - def remove_self_hosted_runner(self, runner: Union[SelfHostedActionsRunner, int]) -> bool: ... + def remove_self_hosted_runner( + self, runner: Union[SelfHostedActionsRunner, int] + ) -> bool: ... def remove_invitation(self, invite_id: int) -> None: ... def replace_topics(self, topics: List[str]) -> None: ... @property diff --git a/github/RepositoryPreferences.py b/github/RepositoryPreferences.py new file mode 100644 index 00000000..4c954ca3 --- /dev/null +++ b/github/RepositoryPreferences.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- + +############################ Copyrights and license ############################ +# # +# Copyright 2020 Dhruv Manilawala # +# # +# This file is part of PyGithub. # +# http://pygithub.readthedocs.io/ # +# # +# PyGithub is free software: you can redistribute it and/or modify it under # +# the terms of the GNU Lesser General Public License as published by the Free # +# Software Foundation, either version 3 of the License, or (at your option) # +# any later version. # +# # +# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # +# details. # +# # +# You should have received a copy of the GNU Lesser General Public License # +# along with PyGithub. If not, see . # +# # +################################################################################ + +import github.GithubObject +import github.Repository + + +class RepositoryPreferences(github.GithubObject.NonCompletableGithubObject): + """ + This class represents repository preferences. + The reference can be found here https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#update-repository-preferences-for-check-suites + """ + + @property + def preferences(self): + """ + :type: dict + """ + return self._preferences.value + + @property + def repository(self): + """ + :type: :class:`github.Repository.Repository` + """ + return self._repository.value + + def _initAttributes(self): + self._preferences = github.GithubObject.NotSet + self._repository = github.GithubObject.NotSet + + def _useAttributes(self, attributes): + if "preferences" in attributes: # pragma no branch + self._preferences = self._makeDictAttribute(attributes["preferences"]) + if "repository" in attributes: # pragma no branch + self._repository = self._makeClassAttribute( + github.Repository.Repository, attributes["repository"] + ) diff --git a/github/RepositoryPreferences.pyi b/github/RepositoryPreferences.pyi new file mode 100644 index 00000000..f405734c --- /dev/null +++ b/github/RepositoryPreferences.pyi @@ -0,0 +1,12 @@ +from typing import Any, Dict, List, Union + +from github.GithubObject import NonCompletableGithubObject +from github.Repository import Repository + +class RepositoryPreferences(NonCompletableGithubObject): + def _initAttributes(self) -> None: ... + def _useAttributes(self, attributes: Dict[str, Any]) -> None: ... + @property + def preferences(self) -> Dict[str, List[Dict[str, Union[bool, int]]]]: ... + @property + def repository(self) -> Repository: ... diff --git a/tests/CheckSuite.py b/tests/CheckSuite.py new file mode 100644 index 00000000..6b36d7bd --- /dev/null +++ b/tests/CheckSuite.py @@ -0,0 +1,174 @@ +# -*- coding: utf-8 -*- + +############################ Copyrights and license ############################ +# # +# Copyright 2020 Raju Subramanian # +# Copyright 2020 Dhruv Manilawala # +# # +# This file is part of PyGithub. # +# http://pygithub.readthedocs.io/ # +# # +# PyGithub is free software: you can redistribute it and/or modify it under # +# the terms of the GNU Lesser General Public License as published by the Free # +# Software Foundation, either version 3 of the License, or (at your option) # +# any later version. # +# # +# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # +# details. # +# # +# You should have received a copy of the GNU Lesser General Public License # +# along with PyGithub. If not, see . # +# # +################################################################################ + +from datetime import datetime + +from . import Framework + + +class CheckSuite(Framework.TestCase): + def setUp(self): + super().setUp() + self.check_suite_id = 1004503837 + self.test_check_suite_id = 1366665055 + self.test_repo = self.g.get_repo("dhruvmanila/pygithub-testing") + self.test_check_suite = self.test_repo.get_check_suite(self.test_check_suite_id) + self.repo = self.g.get_repo("wrecker/PySample") + self.check_suite = self.repo.get_check_suite(self.check_suite_id) + self.check_suite_ref = "fd09d934bcce792176d6b79d6d0387e938b62b7a" + self.commit = self.repo.get_commit("fd09d934bcce792176d6b79d6d0387e938b62b7a") + + def testAttributes(self): + cs = self.check_suite + self.assertEqual(cs.after, "fd09d934bcce792176d6b79d6d0387e938b62b7a") + self.assertEqual(cs.app.slug, "github-actions") + self.assertEqual(cs.before, "9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283") + self.assertEqual( + cs.check_runs_url, + "https://api.github.com/repos/wrecker/PySample/check-suites/1004503837/check-runs", + ) + self.assertEqual(cs.conclusion, "success") + self.assertEqual(cs.created_at, datetime(2020, 8, 4, 5, 6, 54)) + self.assertEqual(cs.head_branch, "wrecker-patch-1") + self.assertEqual(cs.head_commit.sha, "fd09d934bcce792176d6b79d6d0387e938b62b7a") + self.assertEqual(cs.head_sha, "fd09d934bcce792176d6b79d6d0387e938b62b7a") + self.assertEqual(cs.id, self.check_suite_id) + self.assertEqual(cs.latest_check_runs_count, 2) + self.assertEqual(cs.id, self.check_suite_id) + self.assertEqual(len(cs.pull_requests), 1) + self.assertEqual(cs.pull_requests[0].id, 462527907) + self.assertEqual( + cs.repository.url, "https://api.github.com/repos/wrecker/PySample" + ) + self.assertEqual(cs.status, "completed") + self.assertEqual(cs.updated_at, datetime(2020, 8, 4, 5, 7, 40)) + self.assertEqual( + cs.url, + "https://api.github.com/repos/wrecker/PySample/check-suites/1004503837", + ) + + def testGetCheckSuitesForRef(self): + check_suites = self.commit.get_check_suites() + self.assertEqual(check_suites.totalCount, 6) + self.assertListEqual( + [cs.id for cs in check_suites], + [1004503392, 1004503393, 1004503395, 1004503397, 1004503837, 1004503857], + ) + + def testGetCheckSuitesForRefFilterByAppId(self): + check_suites = self.commit.get_check_suites(app_id=29110) + self.assertEqual(check_suites.totalCount, 1) + self.assertListEqual([cs.id for cs in check_suites], [1004503392]) + + def testGetCheckSuitesForRefFilterByCheckName(self): + check_suites = self.commit.get_check_suites(check_name="Alex") + self.assertEqual(check_suites.totalCount, 1) + self.assertListEqual([cs.id for cs in check_suites], [1004503395]) + + def testCheckSuiteRerequest(self): + cs = self.repo.get_check_suite(1004503395) + status = cs.rerequest() + self.assertTrue(status) + + def testGetCheckRuns(self): + check_runs = self.test_check_suite.get_check_runs() + self.assertEqual(check_runs.totalCount, 8) + self.assertListEqual( + [cr.id for cr in check_runs], + [ + 1278952206, + 1279259090, + 1280450752, + 1280914700, + 1296027873, + 1296028076, + 1296029378, + 1296029552, + ], + ) + + def testGetCheckRunsFilterByCheckName(self): + check_runs = self.test_check_suite.get_check_runs(check_name="Testing") + self.assertEqual(check_runs.totalCount, 1) + self.assertEqual([cr.id for cr in check_runs], [1278952206]) + + def testGetCheckRunsFilterByStatus(self): + check_runs = self.test_check_suite.get_check_runs(status="completed") + self.assertEqual(check_runs.totalCount, 8) + self.assertListEqual( + [cr.id for cr in check_runs], + [ + 1278952206, + 1279259090, + 1280450752, + 1280914700, + 1296027873, + 1296028076, + 1296029378, + 1296029552, + ], + ) + + def testGetCheckRunsFilterByFilter(self): + check_runs = self.test_check_suite.get_check_runs(filter="all") + self.assertEqual(check_runs.totalCount, 8) + self.assertListEqual( + [cr.id for cr in check_runs], + [ + 1278952206, + 1279259090, + 1280450752, + 1280914700, + 1296027873, + 1296028076, + 1296029378, + 1296029552, + ], + ) + + def testCreateCheckSuite(self): + sha = "e5868bd5a9ccdd65c9c979250e11105f4c88faf4" + check_suite = self.test_repo.create_check_suite(head_sha=sha) + self.assertEqual(check_suite.head_sha, sha) + self.assertEqual(check_suite.status, "queued") + self.assertIsNone(check_suite.conclusion) + + def testUpdateCheckSuitesPreferences(self): + data = [{"app_id": 85429, "setting": False}] + repo_preferences = self.test_repo.update_check_suites_preferences(data) + setting = None + for app in repo_preferences.preferences["auto_trigger_checks"]: + if app["app_id"] == data[0]["app_id"]: + setting = app["setting"] + self.assertFalse(setting) + self.assertEqual( + repo_preferences.repository.full_name, "dhruvmanila/pygithub-testing" + ) + data = [{"app_id": 85429, "setting": True}] + repo_preferences = self.test_repo.update_check_suites_preferences(data) + for app in repo_preferences.preferences["auto_trigger_checks"]: + if app["app_id"] == data[0]["app_id"]: + setting = app["setting"] + self.assertTrue(setting) diff --git a/tests/ReplayData/CheckSuite.setUp.txt b/tests/ReplayData/CheckSuite.setUp.txt new file mode 100644 index 00000000..8ab1221a --- /dev/null +++ b/tests/ReplayData/CheckSuite.setUp.txt @@ -0,0 +1,55 @@ +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 20:31:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"50f85744fb01b2c6d1ffffd66fbf74ab2f05d212f1069faf9ea45de0bf129224"'), ('Last-Modified', 'Fri, 27 Nov 2020 19:19:41 GMT'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4989'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '11'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D593:2B8B:29EAC0:3608F6:5FC16233')] +{"id":305573836,"node_id":"MDEwOlJlcG9zaXRvcnkzMDU1NzM4MzY=","name":"pygithub-testing","full_name":"dhruvmanila/pygithub-testing","private":false,"owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dhruvmanila/pygithub-testing","description":"This repository is a hot bed for testing GitHub API endpoints for PyGithub.","fork":false,"url":"https://api.github.com/repos/dhruvmanila/pygithub-testing","forks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/forks","keys_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/teams","hooks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/hooks","issue_events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/events{/number}","events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/events","assignees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/assignees{/user}","branches_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/branches{/branch}","tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/tags","blobs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/languages","stargazers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/stargazers","contributors_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contributors","subscribers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscribers","subscription_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscription","commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contents/{+path}","compare_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/merges","archive_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/downloads","issues_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues{/number}","pulls_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/labels{/name}","releases_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/releases{/id}","deployments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/deployments","created_at":"2020-10-20T02:59:36Z","updated_at":"2020-11-27T19:19:41Z","pushed_at":"2020-11-27T19:19:39Z","git_url":"git://github.com/dhruvmanila/pygithub-testing.git","ssh_url":"git@github.com:dhruvmanila/pygithub-testing.git","clone_url":"https://github.com/dhruvmanila/pygithub-testing.git","svn_url":"https://github.com/dhruvmanila/pygithub-testing","homepage":null,"size":2,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"main","permissions":{"admin":false,"push":false,"pull":false},"temp_clone_token":"","network_count":0,"subscribers_count":1} + +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 20:31:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"89a78bfe8aa1dc35f7cda97387b37fc4ae1dad4eccd4d724dd0cb169d6f960d8"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4988'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '12'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D594:1863:28279A:33D5DC:5FC16233')] +{"id":1366665055,"node_id":"MDEwOkNoZWNrU3VpdGUxMzY2NjY1MDU1","head_branch":"main","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","status":"completed","conclusion":"failure","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-suites/1366665055","before":"0000000000000000000000000000000000000000","after":"0283d46537193f1fed7d46859f15c5304b9836f9","pull_requests":[],"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"created_at":"2020-10-20T03:25:40Z","updated_at":"2020-10-23T03:05:31Z","latest_check_runs_count":8,"check_runs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs","head_commit":{"id":"0283d46537193f1fed7d46859f15c5304b9836f9","tree_id":"fa1c1852eb4f8c87c88815682de697b797f57834","message":"Initial commit","timestamp":"2020-10-20T02:59:37Z","author":{"name":"Dhruv Manilawala","email":"dhruvmanila@gmail.com"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":305573836,"node_id":"MDEwOlJlcG9zaXRvcnkzMDU1NzM4MzY=","name":"pygithub-testing","full_name":"dhruvmanila/pygithub-testing","private":false,"owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dhruvmanila/pygithub-testing","description":"This repository is a hot bed for testing GitHub API endpoints for PyGithub.","fork":false,"url":"https://api.github.com/repos/dhruvmanila/pygithub-testing","forks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/forks","keys_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/teams","hooks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/hooks","issue_events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/events{/number}","events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/events","assignees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/assignees{/user}","branches_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/branches{/branch}","tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/tags","blobs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/languages","stargazers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/stargazers","contributors_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contributors","subscribers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscribers","subscription_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscription","commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contents/{+path}","compare_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/merges","archive_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/downloads","issues_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues{/number}","pulls_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/labels{/name}","releases_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/releases{/id}","deployments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/deployments"}} + +https +GET +api.github.com +None +/repos/wrecker/PySample +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 20:31:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"7f77b341de2ab433ed810066495b61ead6cfa91452856a0cc44f00aa4454c412"'), ('Last-Modified', 'Tue, 04 Aug 2020 05:06:11 GMT'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4987'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '13'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D595:790B:1C088:2ACD5:5FC16234')] +{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments","created_at":"2020-07-31T06:44:32Z","updated_at":"2020-08-04T05:06:11Z","pushed_at":"2020-08-04T05:06:51Z","git_url":"git://github.com/wrecker/PySample.git","ssh_url":"git@github.com:wrecker/PySample.git","clone_url":"https://github.com/wrecker/PySample.git","svn_url":"https://github.com/wrecker/PySample","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"main","permissions":{"admin":false,"push":false,"pull":false},"temp_clone_token":"","network_count":0,"subscribers_count":0} + +https +GET +api.github.com +None +/repos/wrecker/PySample/check-suites/1004503837 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 20:31:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"54bee91f21251778dfe26b78dd22686a970c56729c09928324a355045e87d553"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4986'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '14'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D596:790C:D2CD7:106AEE:5FC16234')] +{"id":1004503837,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzODM3","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503837","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":15368,"slug":"github-actions","node_id":"MDM6QXBwMTUzNjg=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"GitHub Actions","description":"Automate your workflow from idea to production","external_url":"https://help.github.com/en/actions","html_url":"https://github.com/apps/github-actions","created_at":"2018-07-30T09:30:17Z","updated_at":"2019-12-10T19:04:12Z","permissions":{"actions":"write","checks":"write","contents":"write","deployments":"write","issues":"write","metadata":"read","packages":"write","pages":"write","pull_requests":"write","repository_hooks":"write","repository_projects":"write","security_events":"write","statuses":"write","vulnerability_alerts":"read"},"events":["check_run","check_suite","create","delete","deployment","deployment_status","fork","gollum","issues","issue_comment","label","milestone","page_build","project","project_card","project_column","public","pull_request","pull_request_review","pull_request_review_comment","push","registry_package","release","repository","repository_dispatch","status","watch","workflow_dispatch","workflow_run"]},"created_at":"2020-08-04T05:06:54Z","updated_at":"2020-08-04T05:07:40Z","latest_check_runs_count":2,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503837/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}} + +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 20:31:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"27e35b5ca8cc0dc13e0cc6ee5f221608689477b3d6e2798a0143c4e11f1c95d9"'), ('Last-Modified', 'Tue, 04 Aug 2020 05:06:50 GMT'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4985'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '15'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D597:2E6F:933FF:C470E:5FC16234')] +{"sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","node_id":"MDY6Q29tbWl0MjgzOTYzMTYyOmZkMDlkOTM0YmNjZTc5MjE3NmQ2Yjc5ZDZkMDM4N2U5MzhiNjJiN2E=","commit":{"author":{"name":"Mahesh Raju","email":"coder@mahesh.net","date":"2020-08-04T05:06:50Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2020-08-04T05:06:50Z"},"message":"Update README.md","tree":{"sha":"ece026d8b3d79448ead6e7a2e2919dea8057db38","url":"https://api.github.com/repos/wrecker/PySample/git/trees/ece026d8b3d79448ead6e7a2e2919dea8057db38"},"url":"https://api.github.com/repos/wrecker/PySample/git/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfKOzqCRBK7hj4Ov3rIwAAdHIIADIXKi6bQYeoknS7ohOY6xzG\nreYd/WpX946O/V5epCHra1GNSqIn6DAvzFXAsTW0CdkYN6R2fLkzYjY7bYSPs+m8\nk8CwF0Rww68Cyn/roOf9iiURyBJAIv3JV3vL8faM6/wxPRDRlXtJ1YvEouALNK08\nenJc1nZ4XYh5zG0RDT/FlGZ2XWYH5o+V3jti/7fkouBtH3MdcGGLYFRLGj+oiSZA\n7URgdF/0VCZihKz5rQJSWNyBcXDLLPRKz+9G27x16KbUo2fom6gAjV7sf363tt2f\nonZ/7M2317OsudWMEN1WMKPRGnYzOu3qaEQQDJiMUzQM+uv25D2ObmUCWHKX75o=\n=yRoa\n-----END PGP SIGNATURE-----\n","payload":"tree ece026d8b3d79448ead6e7a2e2919dea8057db38\nparent 9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283\nauthor Mahesh Raju 1596517610 -0700\ncommitter GitHub 1596517610 -0700\n\nUpdate README.md"}},"url":"https://api.github.com/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a","html_url":"https://github.com/wrecker/PySample/commit/fd09d934bcce792176d6b79d6d0387e938b62b7a","comments_url":"https://api.github.com/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/comments","author":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","site_admin":false},"parents":[{"sha":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","url":"https://api.github.com/repos/wrecker/PySample/commits/9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","html_url":"https://github.com/wrecker/PySample/commit/9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283"}],"stats":{"total":2,"additions":1,"deletions":1},"files":[{"sha":"6c5a820b8c43a34557374af480bd64dceb513b80","filename":"README.md","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/wrecker/PySample/blob/fd09d934bcce792176d6b79d6d0387e938b62b7a/README.md","raw_url":"https://github.com/wrecker/PySample/raw/fd09d934bcce792176d6b79d6d0387e938b62b7a/README.md","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/README.md?ref=fd09d934bcce792176d6b79d6d0387e938b62b7a","patch":"@@ -4,4 +4,4 @@ A sample python project with tests and tox.ini. I created this as a testbed whil\n developing some features for [PyGithub](https://github.com/PyGithub/PyGithub)\n \n ## TODOs\n-* Add moar Tests\n+* Add moar Tests!"}]} + diff --git a/tests/ReplayData/CheckSuite.testCheckSuiteRerequest.txt b/tests/ReplayData/CheckSuite.testCheckSuiteRerequest.txt new file mode 100644 index 00000000..560c72fa --- /dev/null +++ b/tests/ReplayData/CheckSuite.testCheckSuiteRerequest.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/wrecker/PySample/check-suites/1004503395 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 07:47:34 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4996'), ('X-RateLimit-Reset', '1596962853'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"ac254b8039de356c97a4172e81b67d57"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '8178:9A1D:23CDF:3BF94:5F2FAA15')] +{"id":1004503395,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzk1","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":19534,"slug":"prosebot","node_id":"MDM6QXBwMTk1MzQ=","owner":{"login":"JasonEtco","id":10660468,"node_id":"MDQ6VXNlcjEwNjYwNDY4","avatar_url":"https://avatars1.githubusercontent.com/u/10660468?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonEtco","html_url":"https://github.com/JasonEtco","followers_url":"https://api.github.com/users/JasonEtco/followers","following_url":"https://api.github.com/users/JasonEtco/following{/other_user}","gists_url":"https://api.github.com/users/JasonEtco/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonEtco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonEtco/subscriptions","organizations_url":"https://api.github.com/users/JasonEtco/orgs","repos_url":"https://api.github.com/users/JasonEtco/repos","events_url":"https://api.github.com/users/JasonEtco/events{/privacy}","received_events_url":"https://api.github.com/users/JasonEtco/received_events","type":"User","site_admin":true},"name":"prosebot","description":"Probot App to help you write better on GitHub.\r\n\r\n## Usage\r\n\r\nThis Probot App listens for changes to Markdown files (`.md`) or text files (`.txt`) and runs various checks against them to provide feedback on the English. Currently, the app checks for spelling, prose and inclusive verbiage. This is done by leveraging existing open source libraries, which you can find [listed below](#credits). Here's how it looks in action:\r\n\r\n

\r\n \"image\"\r\n

\r\n\r\n### What it checks\r\n\r\nA non-exhaustive list of the various checks that are run:\r\n\r\n* Correct spelling (and provides possible corrections).\r\n* Use of non-inclusive/profane/offensive language.\r\n* Various prose-related checks, find the full list [here](https://github.com/btford/write-good#checks).\r\n\r\n### Installation\r\n\r\nVisit [the installation page](https://github.com/apps/prosebot) and install the GitHub App on your repositories. That's all there is to it ❤️\r\n\r\n### Configuration\r\n\r\nThere are currently three providers that the app uses to test your text. These can each be disabled, and are all enabled by default. To disable a provider, add a `.github/write-good.yml` file to your repository and set the provider to `false`:\r\n\r\n```yaml\r\n# .github/write-good.yml\r\nwriteGood: true\r\nalex: true\r\nspellchecker: true\r\n```\r\n\r\n### Credits\r\n\r\nThis Probot App is mostly a wrapper around existing open source libraries. The majority of the work is done by those, and they deserve a ton of thanks:\r\n\r\n* [`write-good`](https://github.com/btford/write-good)\r\n* [`alex`](https://github.com/get-alex/alex)\r\n* [`node-spellchecker`](https://github.com/atom/node-spellchecker)\r\n\r\n### Future work\r\n\r\n* Using [Suggested Changes](https://blog.github.com/changelog/2018-10-16-suggested-changes/) to... suggest changes.\r\n* Work on multiple PRs at a time\r\n* Nicer annotations\r\n* More providers? [Open an issue!](https://github.com/JasonEtco/prosebot/issues/new)\r\n","external_url":"https://github.com/JasonEtco/prosebot","html_url":"https://github.com/apps/prosebot","created_at":"2018-10-22T20:28:41Z","updated_at":"2018-10-23T18:40:32Z","permissions":{"checks":"write","contents":"read","pull_requests":"write"},"events":["check_run","check_suite","pull_request"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:55Z","latest_check_runs_count":3,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}} + +https +POST +api.github.com +None +/repos/wrecker/PySample/check-suites/1004503395/rerequest +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +201 +[('Date', 'Sun, 09 Aug 2020 07:47:34 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Server', 'GitHub.com'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4995'), ('X-RateLimit-Reset', '1596962853'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', '"7aedf6d551d7c9a51ab427aecc33124a"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', '817A:5947:6EF121:83E68E:5F2FAA16')] +{} + diff --git a/tests/ReplayData/CheckSuite.testCreateCheckSuite.txt b/tests/ReplayData/CheckSuite.testCreateCheckSuite.txt new file mode 100644 index 00000000..e2f3d8ec --- /dev/null +++ b/tests/ReplayData/CheckSuite.testCreateCheckSuite.txt @@ -0,0 +1,11 @@ +https +POST +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'} +{"head_sha": "e5868bd5a9ccdd65c9c979250e11105f4c88faf4"} +201 +[('Date', 'Fri, 27 Nov 2020 19:22:29 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '7105'), ('Server', 'GitHub.com'), ('Status', '201 Created'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', '"db07237dd90e83739121142eb1f22d667d8797709ca7173208e72efa07587508"'), ('Location', 'https://api.github.com/repos/dhruvmanila/pygithub-testing/check-suites/1573185704'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4962'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '38'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', 'D304:4BFF:9F81A:D35C4:5FC151F5')] +{"id":1573185704,"node_id":"MDEwOkNoZWNrU3VpdGUxNTczMTg1NzA0","head_branch":"main","head_sha":"e5868bd5a9ccdd65c9c979250e11105f4c88faf4","status":"queued","conclusion":null,"url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-suites/1573185704","before":"eec62326c82e9fb73a86395dd9f7cbb03cbb6ef7","after":"e5868bd5a9ccdd65c9c979250e11105f4c88faf4","pull_requests":[],"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"created_at":"2020-11-27T19:22:29Z","updated_at":"2020-11-27T19:22:29Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-suites/1573185704/check-runs","head_commit":{"id":"e5868bd5a9ccdd65c9c979250e11105f4c88faf4","tree_id":"c03d123f8f5dbd1310dda8023d5e48f13fb00ddf","message":"Update README.md","timestamp":"2020-11-27T19:19:39Z","author":{"name":"Dhruv Manilawala","email":"dhruvmanila@gmail.com"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":305573836,"node_id":"MDEwOlJlcG9zaXRvcnkzMDU1NzM4MzY=","name":"pygithub-testing","full_name":"dhruvmanila/pygithub-testing","private":false,"owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dhruvmanila/pygithub-testing","description":"This repository is a hot bed for testing GitHub API endpoints for PyGithub.","fork":false,"url":"https://api.github.com/repos/dhruvmanila/pygithub-testing","forks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/forks","keys_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/teams","hooks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/hooks","issue_events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/events{/number}","events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/events","assignees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/assignees{/user}","branches_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/branches{/branch}","tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/tags","blobs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/languages","stargazers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/stargazers","contributors_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contributors","subscribers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscribers","subscription_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscription","commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contents/{+path}","compare_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/merges","archive_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/downloads","issues_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues{/number}","pulls_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/labels{/name}","releases_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/releases{/id}","deployments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/deployments"}} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckRuns.txt b/tests/ReplayData/CheckSuite.testGetCheckRuns.txt new file mode 100644 index 00000000..d3f08a69 --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckRuns.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs?per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:34:28 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"6f326a256cae89f9cd73a27a7e378b88eb62090df5fc7d3284bac92cbb5fdc6c"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Link', '; rel="next", ; rel="last"'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4994'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '6'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0BE:2837:27E85F:33B68D:5FC146B4')] +{"total_count":8,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:34:29 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"5acf3da13128def8798134fe153745b181581861f8308402e42a07e2a7304e3f"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4993'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '7'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0BF:4C00:2C478D:37D548:5FC146B4')] +{"total_count":8,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1279259090,"node_id":"MDg6Q2hlY2tSdW4xMjc5MjU5MDkw","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"49","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1279259090","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1279259090","details_url":"https://www.example-url.com","status":"completed","conclusion":"success","started_at":"2020-10-20T01:10:20Z","completed_at":"2020-10-20T02:20:30Z","output":{"title":"Mighty Readme report","summary":"There are 0 failures, 2 warnings, and 1 notices.","text":null,"annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1279259090/annotations"},"name":"update_all_params","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1280450752,"node_id":"MDg6Q2hlY2tSdW4xMjgwNDUwNzUy","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280450752","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1280450752","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T16:04:20Z","completed_at":"2020-10-20T10:44:21Z","output":{"title":"Mighty Readme report","summary":"There are 0 failures, 3 warnings, and 1 notices.","text":null,"annotations_count":3,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280450752/annotations"},"name":"mighty_readme","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1280914700,"node_id":"MDg6Q2hlY2tSdW4xMjgwOTE0NzAw","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"102","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280914700","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1280914700","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T10:34:15Z","completed_at":"2020-10-20T12:31:28Z","output":{"title":"Check run for testing list of annotations","summary":"This is test to get the list of annotations.","text":null,"annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280914700/annotations"},"name":"annotations","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296027873,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI3ODcz","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296027873","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296027873","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T10:30:29Z","completed_at":"2020-10-20T11:30:50Z","output":{"title":"Readme report","summary":"There are 0 failures, 2 warnings, and 1 notices.","text":"You may have some misspelled words on lines 2 and 4.","annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296027873/annotations"},"name":"completed_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296028076,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI4MDc2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"50","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296028076","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296028076","details_url":"https://www.example.com","status":"completed","conclusion":"success","started_at":"2020-09-04T01:14:52Z","completed_at":"2020-10-23T03:05:06Z","output":{"title":"PyGithub Check Run Test","summary":"Test summary","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296028076/annotations"},"name":"basic_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296029378,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI5Mzc4","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"101","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029378","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296029378","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"failure","started_at":"2020-10-20T10:14:51Z","completed_at":"2020-10-23T03:05:28Z","output":{"title":"Check run for testing failure","summary":"There is 1 whitespace error.","text":"You may have a whitespace error in the file 'test.py'","annotations_count":1,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029378/annotations"},"name":"fail_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296029552,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI5NTUy","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"100","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029552","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296029552","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T14:24:31Z","completed_at":"2020-10-23T03:05:31Z","output":{"title":"Check run for testing edit method","summary":"This is the summary of editing check run as completed.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029552/annotations"},"name":"edit_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByCheckName.txt b/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByCheckName.txt new file mode 100644 index 00000000..c2c69511 --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByCheckName.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs?check_name=Testing&per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:35:04 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"5704d63e4d53f67dabee3f79e6a77748afc2e412f1da4b0b1ffdc7008db82256"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4987'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '13'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0C9:0AE1:27F673:339262:5FC146D8')] +{"total_count":1,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs?check_name=Testing +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:35:04 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"5704d63e4d53f67dabee3f79e6a77748afc2e412f1da4b0b1ffdc7008db82256"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4986'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '14'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0CA:1863:26FF7A:325AB0:5FC146D8')] +{"total_count":1,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByFilter.txt b/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByFilter.txt new file mode 100644 index 00000000..ea0b253d --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByFilter.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs?per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:35:29 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"bc5a2754dcebebac700c28bba803da668ab1fcad81e3d9c2d7752c6efe02ceab"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Link', '; rel="next", ; rel="last"'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4973'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '27'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0DD:231D:29E830:35BA27:5FC146F0')] +{"total_count":8,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:35:29 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"c93f048e21359179fc4bd4b217070b1283540720beb94c0f1a627eabbef38d67"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4972'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '28'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0DE:231D:29E835:35BA30:5FC146F1')] +{"total_count":8,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1279259090,"node_id":"MDg6Q2hlY2tSdW4xMjc5MjU5MDkw","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"49","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1279259090","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1279259090","details_url":"https://www.example-url.com","status":"completed","conclusion":"success","started_at":"2020-10-20T01:10:20Z","completed_at":"2020-10-20T02:20:30Z","output":{"title":"Mighty Readme report","summary":"There are 0 failures, 2 warnings, and 1 notices.","text":null,"annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1279259090/annotations"},"name":"update_all_params","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1280450752,"node_id":"MDg6Q2hlY2tSdW4xMjgwNDUwNzUy","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280450752","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1280450752","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T16:04:20Z","completed_at":"2020-10-20T10:44:21Z","output":{"title":"Mighty Readme report","summary":"There are 0 failures, 3 warnings, and 1 notices.","text":null,"annotations_count":3,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280450752/annotations"},"name":"mighty_readme","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1280914700,"node_id":"MDg6Q2hlY2tSdW4xMjgwOTE0NzAw","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"102","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280914700","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1280914700","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T10:34:15Z","completed_at":"2020-10-20T12:31:28Z","output":{"title":"Check run for testing list of annotations","summary":"This is test to get the list of annotations.","text":null,"annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280914700/annotations"},"name":"annotations","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296027873,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI3ODcz","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296027873","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296027873","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T10:30:29Z","completed_at":"2020-10-20T11:30:50Z","output":{"title":"Readme report","summary":"There are 0 failures, 2 warnings, and 1 notices.","text":"You may have some misspelled words on lines 2 and 4.","annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296027873/annotations"},"name":"completed_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296028076,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI4MDc2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"50","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296028076","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296028076","details_url":"https://www.example.com","status":"completed","conclusion":"success","started_at":"2020-09-04T01:14:52Z","completed_at":"2020-10-23T03:05:06Z","output":{"title":"PyGithub Check Run Test","summary":"Test summary","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296028076/annotations"},"name":"basic_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296029378,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI5Mzc4","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"101","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029378","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296029378","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"failure","started_at":"2020-10-20T10:14:51Z","completed_at":"2020-10-23T03:05:28Z","output":{"title":"Check run for testing failure","summary":"There is 1 whitespace error.","text":"You may have a whitespace error in the file 'test.py'","annotations_count":1,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029378/annotations"},"name":"fail_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296029552,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI5NTUy","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"100","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029552","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296029552","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T14:24:31Z","completed_at":"2020-10-23T03:05:31Z","output":{"title":"Check run for testing edit method","summary":"This is the summary of editing check run as completed.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029552/annotations"},"name":"edit_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByStatus.txt b/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByStatus.txt new file mode 100644 index 00000000..672e4df0 --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckRunsFilterByStatus.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs?status=completed&filter=NotSet&per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:35:18 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"c71d73ba46c5c827cf067cd061d21c9badb829b15e72a59c09d48fff241e7f7a"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Link', '; rel="next", ; rel="last"'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4980'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '20'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0D3:2E6E:1B866:2962E:5FC146E5')] +{"total_count":8,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + +https +GET +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/1366665055/check-runs?status=completed&filter=NotSet +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Fri, 27 Nov 2020 18:35:18 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"986870f5fbae34956b30285238ba9bedf0f949698317aa703fef790a95605bfa"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4979'), ('X-RateLimit-Reset', '1606505666'), ('X-RateLimit-Used', '21'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D0D4:790D:29F9EF:35A5ED:5FC146E6')] +{"total_count":8,"check_runs":[{"id":1278952206,"node_id":"MDg6Q2hlY2tSdW4xMjc4OTUyMjA2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1278952206","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T04:22:04Z","completed_at":"2020-10-20T04:22:04Z","output":{"title":"Testing","summary":"This is a test for output dictionary.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1278952206/annotations"},"name":"Testing","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1279259090,"node_id":"MDg6Q2hlY2tSdW4xMjc5MjU5MDkw","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"49","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1279259090","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1279259090","details_url":"https://www.example-url.com","status":"completed","conclusion":"success","started_at":"2020-10-20T01:10:20Z","completed_at":"2020-10-20T02:20:30Z","output":{"title":"Mighty Readme report","summary":"There are 0 failures, 2 warnings, and 1 notices.","text":null,"annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1279259090/annotations"},"name":"update_all_params","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1280450752,"node_id":"MDg6Q2hlY2tSdW4xMjgwNDUwNzUy","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280450752","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1280450752","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T16:04:20Z","completed_at":"2020-10-20T10:44:21Z","output":{"title":"Mighty Readme report","summary":"There are 0 failures, 3 warnings, and 1 notices.","text":null,"annotations_count":3,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280450752/annotations"},"name":"mighty_readme","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1280914700,"node_id":"MDg6Q2hlY2tSdW4xMjgwOTE0NzAw","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"102","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280914700","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1280914700","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T10:34:15Z","completed_at":"2020-10-20T12:31:28Z","output":{"title":"Check run for testing list of annotations","summary":"This is test to get the list of annotations.","text":null,"annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1280914700/annotations"},"name":"annotations","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296027873,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI3ODcz","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296027873","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296027873","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T10:30:29Z","completed_at":"2020-10-20T11:30:50Z","output":{"title":"Readme report","summary":"There are 0 failures, 2 warnings, and 1 notices.","text":"You may have some misspelled words on lines 2 and 4.","annotations_count":2,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296027873/annotations"},"name":"completed_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296028076,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI4MDc2","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"50","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296028076","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296028076","details_url":"https://www.example.com","status":"completed","conclusion":"success","started_at":"2020-09-04T01:14:52Z","completed_at":"2020-10-23T03:05:06Z","output":{"title":"PyGithub Check Run Test","summary":"Test summary","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296028076/annotations"},"name":"basic_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296029378,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI5Mzc4","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"101","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029378","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296029378","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"failure","started_at":"2020-10-20T10:14:51Z","completed_at":"2020-10-23T03:05:28Z","output":{"title":"Check run for testing failure","summary":"There is 1 whitespace error.","text":"You may have a whitespace error in the file 'test.py'","annotations_count":1,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029378/annotations"},"name":"fail_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]},{"id":1296029552,"node_id":"MDg6Q2hlY2tSdW4xMjk2MDI5NTUy","head_sha":"0283d46537193f1fed7d46859f15c5304b9836f9","external_id":"100","url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029552","html_url":"https://github.com/dhruvmanila/pygithub-testing/runs/1296029552","details_url":"https://github.com/dhruvmanila/pygithub-testing","status":"completed","conclusion":"success","started_at":"2020-10-20T14:24:31Z","completed_at":"2020-10-23T03:05:31Z","output":{"title":"Check run for testing edit method","summary":"This is the summary of editing check run as completed.","text":null,"annotations_count":0,"annotations_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/check-runs/1296029552/annotations"},"name":"edit_check_run","check_suite":{"id":1366665055},"app":{"id":85429,"slug":"test-pygithub","node_id":"MDM6QXBwODU0Mjk=","owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"name":"Test PyGithub","description":"This app is made only for testing GitHub API endpoints for PyGithub.","external_url":"https://github.com/dhruvmanila/pygithub-testing","html_url":"https://github.com/apps/test-pygithub","created_at":"2020-10-19T16:18:54Z","updated_at":"2020-10-20T03:52:02Z","permissions":{"actions":"write","checks":"write","issues":"write","metadata":"read","pull_requests":"write","workflows":"write"},"events":["check_run","check_suite","issues","issue_comment","pull_request","pull_request_review","pull_request_review_comment","workflow_run"]},"pull_requests":[]}]} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckSuitesForRef.txt b/tests/ReplayData/CheckSuite.testGetCheckSuitesForRef.txt new file mode 100644 index 00000000..27fc4c8c --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckSuitesForRef.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/check-suites?per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 06:33:51 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4975'), ('X-RateLimit-Reset', '1596958127'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"e6b50a68a57fe40587144ce20a89a661"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Link', '; rel="next", ; rel="last"'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'DDA6:594A:F22043:12C895C:5F2F98CE')] +{"total_count":6,"check_suites":[{"id":1004503392,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzky","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"queued","conclusion":null,"url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":29110,"slug":"dependabot","node_id":"MDM6QXBwMjkxMTA=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"Dependabot","description":"","external_url":"https://dependabot-api.githubapp.com","html_url":"https://github.com/apps/dependabot","created_at":"2019-04-16T22:34:25Z","updated_at":"2019-07-01T21:20:42Z","permissions":{"checks":"write","contents":"write","issues":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"read","workflows":"write"},"events":["check_suite","issues","issue_comment","label","pull_request","pull_request_review","pull_request_review_comment","repository"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:51Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}]} + +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/check-suites +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 06:33:51 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4974'), ('X-RateLimit-Reset', '1596958127'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"6a145ce47c25d0eef3e82e194f800e7b"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'DDA8:6CB7:180B1C:1F6330:5F2F98CF')] +{"total_count":6,"check_suites":[{"id":1004503392,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzky","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"queued","conclusion":null,"url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":29110,"slug":"dependabot","node_id":"MDM6QXBwMjkxMTA=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"Dependabot","description":"","external_url":"https://dependabot-api.githubapp.com","html_url":"https://github.com/apps/dependabot","created_at":"2019-04-16T22:34:25Z","updated_at":"2019-07-01T21:20:42Z","permissions":{"checks":"write","contents":"write","issues":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"read","workflows":"write"},"events":["check_suite","issues","issue_comment","label","pull_request","pull_request_review","pull_request_review_comment","repository"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:51Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}},{"id":1004503393,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzkz","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"queued","conclusion":null,"url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503393","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[],"app":{"id":75269,"slug":"pygithubtest","node_id":"MDM6QXBwNzUyNjk=","owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"name":"PyGithubTest","description":"Sample App to test PyGithub","external_url":"https://pygithub.readthedocs.io","html_url":"https://github.com/apps/pygithubtest","created_at":"2020-08-01T17:23:46Z","updated_at":"2020-08-01T17:44:31Z","permissions":{"actions":"write","checks":"write","keys":"read","members":"read","metadata":"read","packages":"read","pages":"read","repository_hooks":"write","vulnerability_alerts":"read","workflows":"write"},"events":["check_run","check_suite","label","member","public"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:51Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503393/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}},{"id":1004503395,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzk1","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[],"app":{"id":19534,"slug":"prosebot","node_id":"MDM6QXBwMTk1MzQ=","owner":{"login":"JasonEtco","id":10660468,"node_id":"MDQ6VXNlcjEwNjYwNDY4","avatar_url":"https://avatars1.githubusercontent.com/u/10660468?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonEtco","html_url":"https://github.com/JasonEtco","followers_url":"https://api.github.com/users/JasonEtco/followers","following_url":"https://api.github.com/users/JasonEtco/following{/other_user}","gists_url":"https://api.github.com/users/JasonEtco/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonEtco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonEtco/subscriptions","organizations_url":"https://api.github.com/users/JasonEtco/orgs","repos_url":"https://api.github.com/users/JasonEtco/repos","events_url":"https://api.github.com/users/JasonEtco/events{/privacy}","received_events_url":"https://api.github.com/users/JasonEtco/received_events","type":"User","site_admin":true},"name":"prosebot","description":"Probot App to help you write better on GitHub.\r\n\r\n## Usage\r\n\r\nThis Probot App listens for changes to Markdown files (`.md`) or text files (`.txt`) and runs various checks against them to provide feedback on the English. Currently, the app checks for spelling, prose and inclusive verbiage. This is done by leveraging existing open source libraries, which you can find [listed below](#credits). Here's how it looks in action:\r\n\r\n

\r\n \"image\"\r\n

\r\n\r\n### What it checks\r\n\r\nA non-exhaustive list of the various checks that are run:\r\n\r\n* Correct spelling (and provides possible corrections).\r\n* Use of non-inclusive/profane/offensive language.\r\n* Various prose-related checks, find the full list [here](https://github.com/btford/write-good#checks).\r\n\r\n### Installation\r\n\r\nVisit [the installation page](https://github.com/apps/prosebot) and install the GitHub App on your repositories. That's all there is to it ❤️\r\n\r\n### Configuration\r\n\r\nThere are currently three providers that the app uses to test your text. These can each be disabled, and are all enabled by default. To disable a provider, add a `.github/write-good.yml` file to your repository and set the provider to `false`:\r\n\r\n```yaml\r\n# .github/write-good.yml\r\nwriteGood: true\r\nalex: true\r\nspellchecker: true\r\n```\r\n\r\n### Credits\r\n\r\nThis Probot App is mostly a wrapper around existing open source libraries. The majority of the work is done by those, and they deserve a ton of thanks:\r\n\r\n* [`write-good`](https://github.com/btford/write-good)\r\n* [`alex`](https://github.com/get-alex/alex)\r\n* [`node-spellchecker`](https://github.com/atom/node-spellchecker)\r\n\r\n### Future work\r\n\r\n* Using [Suggested Changes](https://blog.github.com/changelog/2018-10-16-suggested-changes/) to... suggest changes.\r\n* Work on multiple PRs at a time\r\n* Nicer annotations\r\n* More providers? [Open an issue!](https://github.com/JasonEtco/prosebot/issues/new)\r\n","external_url":"https://github.com/JasonEtco/prosebot","html_url":"https://github.com/apps/prosebot","created_at":"2018-10-22T20:28:41Z","updated_at":"2018-10-23T18:40:32Z","permissions":{"checks":"write","contents":"read","pull_requests":"write"},"events":["check_run","check_suite","pull_request"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:55Z","latest_check_runs_count":3,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}},{"id":1004503397,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzk3","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"queued","conclusion":null,"url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503397","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[],"app":{"id":75507,"slug":"prosebot2","node_id":"MDM6QXBwNzU1MDc=","owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"name":"prosebot2","description":"ProseBot 2","external_url":"https://probot.github.io","html_url":"https://github.com/apps/prosebot2","created_at":"2020-08-04T04:45:55Z","updated_at":"2020-08-04T04:45:55Z","permissions":{"checks":"write","contents":"read","metadata":"read","pull_requests":"write"},"events":["check_run","check_suite"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:51Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503397/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}},{"id":1004503837,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzODM3","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503837","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[],"app":{"id":15368,"slug":"github-actions","node_id":"MDM6QXBwMTUzNjg=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"GitHub Actions","description":"Automate your workflow from idea to production","external_url":"https://help.github.com/en/actions","html_url":"https://github.com/apps/github-actions","created_at":"2018-07-30T09:30:17Z","updated_at":"2019-12-10T19:04:12Z","permissions":{"actions":"write","checks":"write","contents":"write","deployments":"write","issues":"write","metadata":"read","packages":"write","pages":"write","pull_requests":"write","repository_hooks":"write","repository_projects":"write","security_events":"write","statuses":"write","vulnerability_alerts":"read"},"events":["check_run","check_suite","create","delete","deployment","deployment_status","fork","gollum","issues","issue_comment","label","milestone","page_build","project","project_card","project_column","public","pull_request","pull_request_review","pull_request_review_comment","push","registry_package","release","repository","repository_dispatch","status","watch","workflow_dispatch","workflow_run"]},"created_at":"2020-08-04T05:06:54Z","updated_at":"2020-08-04T05:07:40Z","latest_check_runs_count":2,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503837/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}},{"id":1004503857,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzODU3","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503857","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[],"app":{"id":15368,"slug":"github-actions","node_id":"MDM6QXBwMTUzNjg=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"GitHub Actions","description":"Automate your workflow from idea to production","external_url":"https://help.github.com/en/actions","html_url":"https://github.com/apps/github-actions","created_at":"2018-07-30T09:30:17Z","updated_at":"2019-12-10T19:04:12Z","permissions":{"actions":"write","checks":"write","contents":"write","deployments":"write","issues":"write","metadata":"read","packages":"write","pages":"write","pull_requests":"write","repository_hooks":"write","repository_projects":"write","security_events":"write","statuses":"write","vulnerability_alerts":"read"},"events":["check_run","check_suite","create","delete","deployment","deployment_status","fork","gollum","issues","issue_comment","label","milestone","page_build","project","project_card","project_column","public","pull_request","pull_request_review","pull_request_review_comment","push","registry_package","release","repository","repository_dispatch","status","watch","workflow_dispatch","workflow_run"]},"created_at":"2020-08-04T05:06:54Z","updated_at":"2020-08-04T05:07:09Z","latest_check_runs_count":1,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503857/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}]} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByAppId.txt b/tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByAppId.txt new file mode 100644 index 00000000..e25bead4 --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByAppId.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/check-suites?app_id=29110&per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 06:33:52 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4970'), ('X-RateLimit-Reset', '1596958127'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"0541d417e4c5cdd5fa0a1e39f98c9ef5"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'DDB0:8550:104804A:13FAAF7:5F2F98D0')] +{"total_count":1,"check_suites":[{"id":1004503392,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzky","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"queued","conclusion":null,"url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":29110,"slug":"dependabot","node_id":"MDM6QXBwMjkxMTA=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"Dependabot","description":"","external_url":"https://dependabot-api.githubapp.com","html_url":"https://github.com/apps/dependabot","created_at":"2019-04-16T22:34:25Z","updated_at":"2019-07-01T21:20:42Z","permissions":{"checks":"write","contents":"write","issues":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"read","workflows":"write"},"events":["check_suite","issues","issue_comment","label","pull_request","pull_request_review","pull_request_review_comment","repository"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:51Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}]} + +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/check-suites?app_id=29110 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 06:33:53 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4969'), ('X-RateLimit-Reset', '1596958127'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"0541d417e4c5cdd5fa0a1e39f98c9ef5"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'DDB4:24C3:264926:3089E3:5F2F98D0')] +{"total_count":1,"check_suites":[{"id":1004503392,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzky","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"queued","conclusion":null,"url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":29110,"slug":"dependabot","node_id":"MDM6QXBwMjkxMTA=","owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"name":"Dependabot","description":"","external_url":"https://dependabot-api.githubapp.com","html_url":"https://github.com/apps/dependabot","created_at":"2019-04-16T22:34:25Z","updated_at":"2019-07-01T21:20:42Z","permissions":{"checks":"write","contents":"write","issues":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"read","workflows":"write"},"events":["check_suite","issues","issue_comment","label","pull_request","pull_request_review","pull_request_review_comment","repository"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:51Z","latest_check_runs_count":0,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503392/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}]} + diff --git a/tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByCheckName.txt b/tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByCheckName.txt new file mode 100644 index 00000000..1014be68 --- /dev/null +++ b/tests/ReplayData/CheckSuite.testGetCheckSuitesForRefFilterByCheckName.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/check-suites?check_name=Alex&per_page=1 +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 06:33:54 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4965'), ('X-RateLimit-Reset', '1596958127'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"16c27eb9cbf70658135398352a34984e"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EAC2:9FA2:957A02:B47E27:5F2F98D2')] +{"total_count":1,"check_suites":[{"id":1004503395,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzk1","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":19534,"slug":"prosebot","node_id":"MDM6QXBwMTk1MzQ=","owner":{"login":"JasonEtco","id":10660468,"node_id":"MDQ6VXNlcjEwNjYwNDY4","avatar_url":"https://avatars1.githubusercontent.com/u/10660468?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonEtco","html_url":"https://github.com/JasonEtco","followers_url":"https://api.github.com/users/JasonEtco/followers","following_url":"https://api.github.com/users/JasonEtco/following{/other_user}","gists_url":"https://api.github.com/users/JasonEtco/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonEtco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonEtco/subscriptions","organizations_url":"https://api.github.com/users/JasonEtco/orgs","repos_url":"https://api.github.com/users/JasonEtco/repos","events_url":"https://api.github.com/users/JasonEtco/events{/privacy}","received_events_url":"https://api.github.com/users/JasonEtco/received_events","type":"User","site_admin":true},"name":"prosebot","description":"Probot App to help you write better on GitHub.\r\n\r\n## Usage\r\n\r\nThis Probot App listens for changes to Markdown files (`.md`) or text files (`.txt`) and runs various checks against them to provide feedback on the English. Currently, the app checks for spelling, prose and inclusive verbiage. This is done by leveraging existing open source libraries, which you can find [listed below](#credits). Here's how it looks in action:\r\n\r\n

\r\n \"image\"\r\n

\r\n\r\n### What it checks\r\n\r\nA non-exhaustive list of the various checks that are run:\r\n\r\n* Correct spelling (and provides possible corrections).\r\n* Use of non-inclusive/profane/offensive language.\r\n* Various prose-related checks, find the full list [here](https://github.com/btford/write-good#checks).\r\n\r\n### Installation\r\n\r\nVisit [the installation page](https://github.com/apps/prosebot) and install the GitHub App on your repositories. That's all there is to it ❤️\r\n\r\n### Configuration\r\n\r\nThere are currently three providers that the app uses to test your text. These can each be disabled, and are all enabled by default. To disable a provider, add a `.github/write-good.yml` file to your repository and set the provider to `false`:\r\n\r\n```yaml\r\n# .github/write-good.yml\r\nwriteGood: true\r\nalex: true\r\nspellchecker: true\r\n```\r\n\r\n### Credits\r\n\r\nThis Probot App is mostly a wrapper around existing open source libraries. The majority of the work is done by those, and they deserve a ton of thanks:\r\n\r\n* [`write-good`](https://github.com/btford/write-good)\r\n* [`alex`](https://github.com/get-alex/alex)\r\n* [`node-spellchecker`](https://github.com/atom/node-spellchecker)\r\n\r\n### Future work\r\n\r\n* Using [Suggested Changes](https://blog.github.com/changelog/2018-10-16-suggested-changes/) to... suggest changes.\r\n* Work on multiple PRs at a time\r\n* Nicer annotations\r\n* More providers? [Open an issue!](https://github.com/JasonEtco/prosebot/issues/new)\r\n","external_url":"https://github.com/JasonEtco/prosebot","html_url":"https://github.com/apps/prosebot","created_at":"2018-10-22T20:28:41Z","updated_at":"2018-10-23T18:40:32Z","permissions":{"checks":"write","contents":"read","pull_requests":"write"},"events":["check_run","check_suite","pull_request"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:55Z","latest_check_runs_count":3,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}]} + +https +GET +api.github.com +None +/repos/wrecker/PySample/commits/fd09d934bcce792176d6b79d6d0387e938b62b7a/check-suites?check_name=Alex +{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Sun, 09 Aug 2020 06:33:54 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4964'), ('X-RateLimit-Reset', '1596958127'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"16c27eb9cbf70658135398352a34984e"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EAC4:55B2:10F0E6:15F054:5F2F98D2')] +{"total_count":1,"check_suites":[{"id":1004503395,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzk1","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":19534,"slug":"prosebot","node_id":"MDM6QXBwMTk1MzQ=","owner":{"login":"JasonEtco","id":10660468,"node_id":"MDQ6VXNlcjEwNjYwNDY4","avatar_url":"https://avatars1.githubusercontent.com/u/10660468?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonEtco","html_url":"https://github.com/JasonEtco","followers_url":"https://api.github.com/users/JasonEtco/followers","following_url":"https://api.github.com/users/JasonEtco/following{/other_user}","gists_url":"https://api.github.com/users/JasonEtco/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonEtco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonEtco/subscriptions","organizations_url":"https://api.github.com/users/JasonEtco/orgs","repos_url":"https://api.github.com/users/JasonEtco/repos","events_url":"https://api.github.com/users/JasonEtco/events{/privacy}","received_events_url":"https://api.github.com/users/JasonEtco/received_events","type":"User","site_admin":true},"name":"prosebot","description":"Probot App to help you write better on GitHub.\r\n\r\n## Usage\r\n\r\nThis Probot App listens for changes to Markdown files (`.md`) or text files (`.txt`) and runs various checks against them to provide feedback on the English. Currently, the app checks for spelling, prose and inclusive verbiage. This is done by leveraging existing open source libraries, which you can find [listed below](#credits). Here's how it looks in action:\r\n\r\n

\r\n \"image\"\r\n

\r\n\r\n### What it checks\r\n\r\nA non-exhaustive list of the various checks that are run:\r\n\r\n* Correct spelling (and provides possible corrections).\r\n* Use of non-inclusive/profane/offensive language.\r\n* Various prose-related checks, find the full list [here](https://github.com/btford/write-good#checks).\r\n\r\n### Installation\r\n\r\nVisit [the installation page](https://github.com/apps/prosebot) and install the GitHub App on your repositories. That's all there is to it ❤️\r\n\r\n### Configuration\r\n\r\nThere are currently three providers that the app uses to test your text. These can each be disabled, and are all enabled by default. To disable a provider, add a `.github/write-good.yml` file to your repository and set the provider to `false`:\r\n\r\n```yaml\r\n# .github/write-good.yml\r\nwriteGood: true\r\nalex: true\r\nspellchecker: true\r\n```\r\n\r\n### Credits\r\n\r\nThis Probot App is mostly a wrapper around existing open source libraries. The majority of the work is done by those, and they deserve a ton of thanks:\r\n\r\n* [`write-good`](https://github.com/btford/write-good)\r\n* [`alex`](https://github.com/get-alex/alex)\r\n* [`node-spellchecker`](https://github.com/atom/node-spellchecker)\r\n\r\n### Future work\r\n\r\n* Using [Suggested Changes](https://blog.github.com/changelog/2018-10-16-suggested-changes/) to... suggest changes.\r\n* Work on multiple PRs at a time\r\n* Nicer annotations\r\n* More providers? [Open an issue!](https://github.com/JasonEtco/prosebot/issues/new)\r\n","external_url":"https://github.com/JasonEtco/prosebot","html_url":"https://github.com/apps/prosebot","created_at":"2018-10-22T20:28:41Z","updated_at":"2018-10-23T18:40:32Z","permissions":{"checks":"write","contents":"read","pull_requests":"write"},"events":["check_run","check_suite","pull_request"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:55Z","latest_check_runs_count":3,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}]} + diff --git a/tests/ReplayData/CheckSuite.testUpdateCheckSuitesPreferences.txt b/tests/ReplayData/CheckSuite.testUpdateCheckSuitesPreferences.txt new file mode 100644 index 00000000..ed111f58 --- /dev/null +++ b/tests/ReplayData/CheckSuite.testUpdateCheckSuitesPreferences.txt @@ -0,0 +1,22 @@ +https +PATCH +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/preferences +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'} +{"auto_trigger_checks": [{"app_id": 85429, "setting": false}]} +200 +[('Date', 'Fri, 27 Nov 2020 20:31:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"29056a6c6a03863de1dcb1d31f3b7212c3a460108a1dd923b54f36c006c7cb7a"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4984'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '16'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D598:2E70:313595:3D6087:5FC16235')] +{"preferences":{"auto_trigger_checks":[{"app_id":67,"setting":true},{"app_id":85429,"setting":false},{"app_id":86183,"setting":true}]},"repository":{"id":305573836,"node_id":"MDEwOlJlcG9zaXRvcnkzMDU1NzM4MzY=","name":"pygithub-testing","full_name":"dhruvmanila/pygithub-testing","private":false,"owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dhruvmanila/pygithub-testing","description":"This repository is a hot bed for testing GitHub API endpoints for PyGithub.","fork":false,"url":"https://api.github.com/repos/dhruvmanila/pygithub-testing","forks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/forks","keys_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/teams","hooks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/hooks","issue_events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/events{/number}","events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/events","assignees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/assignees{/user}","branches_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/branches{/branch}","tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/tags","blobs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/languages","stargazers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/stargazers","contributors_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contributors","subscribers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscribers","subscription_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscription","commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contents/{+path}","compare_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/merges","archive_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/downloads","issues_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues{/number}","pulls_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/labels{/name}","releases_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/releases{/id}","deployments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/deployments"}} + +https +PATCH +api.github.com +None +/repos/dhruvmanila/pygithub-testing/check-suites/preferences +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'} +{"auto_trigger_checks": [{"app_id": 85429, "setting": true}]} +200 +[('Date', 'Fri, 27 Nov 2020 20:31:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"2df2e582a88bdbf265e18c6e813181a1913e6de09e4ff93e1b0c8dcb1deceb05"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4983'), ('X-RateLimit-Reset', '1606511185'), ('X-RateLimit-Used', '17'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D599:231D:2B289E:375246:5FC16235')] +{"preferences":{"auto_trigger_checks":[{"app_id":67,"setting":true},{"app_id":85429,"setting":true},{"app_id":86183,"setting":true}]},"repository":{"id":305573836,"node_id":"MDEwOlJlcG9zaXRvcnkzMDU1NzM4MzY=","name":"pygithub-testing","full_name":"dhruvmanila/pygithub-testing","private":false,"owner":{"login":"dhruvmanila","id":67177269,"node_id":"MDQ6VXNlcjY3MTc3MjY5","avatar_url":"https://avatars0.githubusercontent.com/u/67177269?v=4","gravatar_id":"","url":"https://api.github.com/users/dhruvmanila","html_url":"https://github.com/dhruvmanila","followers_url":"https://api.github.com/users/dhruvmanila/followers","following_url":"https://api.github.com/users/dhruvmanila/following{/other_user}","gists_url":"https://api.github.com/users/dhruvmanila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvmanila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvmanila/subscriptions","organizations_url":"https://api.github.com/users/dhruvmanila/orgs","repos_url":"https://api.github.com/users/dhruvmanila/repos","events_url":"https://api.github.com/users/dhruvmanila/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvmanila/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dhruvmanila/pygithub-testing","description":"This repository is a hot bed for testing GitHub API endpoints for PyGithub.","fork":false,"url":"https://api.github.com/repos/dhruvmanila/pygithub-testing","forks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/forks","keys_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/teams","hooks_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/hooks","issue_events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/events{/number}","events_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/events","assignees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/assignees{/user}","branches_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/branches{/branch}","tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/tags","blobs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/languages","stargazers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/stargazers","contributors_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contributors","subscribers_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscribers","subscription_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/subscription","commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/contents/{+path}","compare_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/merges","archive_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/downloads","issues_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/issues{/number}","pulls_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/labels{/name}","releases_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/releases{/id}","deployments_url":"https://api.github.com/repos/dhruvmanila/pygithub-testing/deployments"}} +