From 2ab811e71d5a0a2347796ac47cb891f31bdd27f7 Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Mon, 15 Mar 2021 23:36:47 +0400 Subject: [PATCH 01/17] Add function docstring --- github/PullRequest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/github/PullRequest.py b/github/PullRequest.py index 641f366313..3e73c29799 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -502,6 +502,13 @@ def create_review( self._requester, headers, data, completed=True ) + def delete_pending_review(self, id): + """ + :calls: `POST /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ + :param id: integer + :rtype: None + """ + def create_review_request( self, reviewers=github.GithubObject.NotSet, From 75e6f38cebb8acb39aa6fd267016911042b0a4a1 Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Wed, 17 Mar 2021 22:34:12 +0400 Subject: [PATCH 02/17] Add initial implementation of the delete pending PR --- github/PullRequest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/github/PullRequest.py b/github/PullRequest.py index 3e73c29799..85b8885f12 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -508,7 +508,11 @@ def delete_pending_review(self, id): :param id: integer :rtype: None """ - + assert isinstance(id, int), id + headers, data = self._requester.requestJsonAndCheck( + "DELETE", f"{self.url}/reviews{id}" + ) + def create_review_request( self, reviewers=github.GithubObject.NotSet, From 0ddad99e8eb0e8f459f59409b47cadc1465cdaed Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Fri, 19 Mar 2021 22:13:48 +0400 Subject: [PATCH 03/17] Add delete pending review function to PullRequest.pyi --- github/PullRequest.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/github/PullRequest.pyi b/github/PullRequest.pyi index 597a85ad4a..9e5bbc8a82 100644 --- a/github/PullRequest.pyi +++ b/github/PullRequest.pyi @@ -56,6 +56,7 @@ class PullRequest(CompletableGithubObject): event: Union[_NotSetType, str] = ..., comments: Union[_NotSetType, str] = ..., ) -> PullRequestReview: ... + def delete_pending_review(self,id: int) -> None: ... def create_review_comment( self, body: str, commit_id: Commit, path: str, position: int ) -> PullRequestComment: ... From 401a510bc0cf26ca9a0f278b7ab0ee6eaa8ce038 Mon Sep 17 00:00:00 2001 From: WonjoonC Date: Wed, 24 Mar 2021 12:37:49 -0400 Subject: [PATCH 04/17] Added test case in proper branch --- tests/PullRequest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index a52dd3ca52..b922b5bcff 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -177,6 +177,16 @@ def testGetIssueEvents(self): [16349963, 16350729, 16350730, 16350731, 28469043, 98136335], ) + def testPendingReview(self): + 42 = self.repo.get_review(42) + self.assertListKeyEqual( + self.pull.get_review(), lambda r: r.id, [42], + ) + self.delete_pending_review(42) + self.assertListKeyEqual( + self.pull.get_review(), lambda r: r.id, [], + ) + def testGetReviewComments(self): epoch = datetime.datetime(1970, 1, 1, 0, 0) comments = self.pull.get_review_comments(since=epoch) From 52a423c35b58debc37cfbe789aa2dc405aef87e2 Mon Sep 17 00:00:00 2001 From: WonjoonC Date: Wed, 24 Mar 2021 13:45:57 -0400 Subject: [PATCH 05/17] reassigned review id test --- tests/PullRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index b922b5bcff..9dbe1731bf 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -178,7 +178,7 @@ def testGetIssueEvents(self): ) def testPendingReview(self): - 42 = self.repo.get_review(42) + review_id = self.repo.get_review(42) self.assertListKeyEqual( self.pull.get_review(), lambda r: r.id, [42], ) From 355b1f291edba6251a74716e82668a605944e710 Mon Sep 17 00:00:00 2001 From: WonjoonC Date: Wed, 24 Mar 2021 14:10:51 -0400 Subject: [PATCH 06/17] reformatted test --- tests/PullRequest.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index 9dbe1731bf..c224c990c0 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -178,13 +178,19 @@ def testGetIssueEvents(self): ) def testPendingReview(self): - review_id = self.repo.get_review(42) + commit = self.repo.get_commit("8a4f306d4b223682dd19410d4a9150636ebe4206") + comment = self.pull.create_comment( + "Comment created by PyGithub", commit, "src/github/Issue.py", 5 + ) + review_id = self.pull.create_review(commit, "Body of review", "event", []) + ) + review_id = self.repo.get_review() self.assertListKeyEqual( - self.pull.get_review(), lambda r: r.id, [42], + self.pull.get_review(), lambda r: r.id, review_id, ) - self.delete_pending_review(42) + self.delete_pending_review() self.assertListKeyEqual( - self.pull.get_review(), lambda r: r.id, [], + self.pull.get_review(), lambda r: r.id, review_id, ) def testGetReviewComments(self): From 0a0a43cece0f645d6891e801aacb9b0f2664df11 Mon Sep 17 00:00:00 2001 From: WonjoonC Date: Wed, 24 Mar 2021 14:11:19 -0400 Subject: [PATCH 07/17] Deleted comment --- tests/PullRequest.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index c224c990c0..912e93297e 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -179,9 +179,6 @@ def testGetIssueEvents(self): def testPendingReview(self): commit = self.repo.get_commit("8a4f306d4b223682dd19410d4a9150636ebe4206") - comment = self.pull.create_comment( - "Comment created by PyGithub", commit, "src/github/Issue.py", 5 - ) review_id = self.pull.create_review(commit, "Body of review", "event", []) ) review_id = self.repo.get_review() From 8063a5ce74403b2a99ff8ec61c3e807a2a34e450 Mon Sep 17 00:00:00 2001 From: WonjoonC Date: Wed, 24 Mar 2021 14:12:44 -0400 Subject: [PATCH 08/17] deleted extraneous parenthesis --- tests/PullRequest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index 912e93297e..29797b7487 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -179,8 +179,7 @@ def testGetIssueEvents(self): def testPendingReview(self): commit = self.repo.get_commit("8a4f306d4b223682dd19410d4a9150636ebe4206") - review_id = self.pull.create_review(commit, "Body of review", "event", []) - ) + review_id = self.pull.create_review(commit, "Body of review", "event", []) review_id = self.repo.get_review() self.assertListKeyEqual( self.pull.get_review(), lambda r: r.id, review_id, From ed2d2e4c372b7085f5914188df0049afb4f5a0b1 Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Wed, 24 Mar 2021 22:16:32 +0400 Subject: [PATCH 09/17] Fix review id --- tests/PullRequest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index 29797b7487..1920a21984 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -179,8 +179,9 @@ def testGetIssueEvents(self): def testPendingReview(self): commit = self.repo.get_commit("8a4f306d4b223682dd19410d4a9150636ebe4206") - review_id = self.pull.create_review(commit, "Body of review", "event", []) - review_id = self.repo.get_review() + self.pull.create_review(commit, "Body of review", "event", []) + review = self.repo.get_review() + review_id = review.id self.assertListKeyEqual( self.pull.get_review(), lambda r: r.id, review_id, ) From 6504caf0318a28a549344a14f2690081b2d866df Mon Sep 17 00:00:00 2001 From: WonjoonC Date: Wed, 24 Mar 2021 14:31:36 -0400 Subject: [PATCH 10/17] moved testDeleteReview test --- tests/PullRequest.py | 13 ------------- tests/PullRequestReview.py | 5 +++++ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/tests/PullRequest.py b/tests/PullRequest.py index 1920a21984..a52dd3ca52 100644 --- a/tests/PullRequest.py +++ b/tests/PullRequest.py @@ -177,19 +177,6 @@ def testGetIssueEvents(self): [16349963, 16350729, 16350730, 16350731, 28469043, 98136335], ) - def testPendingReview(self): - commit = self.repo.get_commit("8a4f306d4b223682dd19410d4a9150636ebe4206") - self.pull.create_review(commit, "Body of review", "event", []) - review = self.repo.get_review() - review_id = review.id - self.assertListKeyEqual( - self.pull.get_review(), lambda r: r.id, review_id, - ) - self.delete_pending_review() - self.assertListKeyEqual( - self.pull.get_review(), lambda r: r.id, review_id, - ) - def testGetReviewComments(self): epoch = datetime.datetime(1970, 1, 1, 0, 0) comments = self.pull.get_review_comments(since=epoch) diff --git a/tests/PullRequestReview.py b/tests/PullRequestReview.py index a2e317cc46..c39d0c2fd6 100644 --- a/tests/PullRequestReview.py +++ b/tests/PullRequestReview.py @@ -79,3 +79,8 @@ def testAttributes(self): repr(self.pullreview), 'PullRequestReview(user=NamedUser(login="jzelinskie"), id=28482091)', ) + + def testDeleteReview(self): + self.pullreview.delete_pending_review() + review_id = self.pull.get_review(28482091) + self.assertEqual(pr.state, "CHANGES_REQUESTED") From 0cdc77117ea0de7179e0d9ddd8f547a1768e7bbb Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Thu, 25 Mar 2021 01:54:19 +0400 Subject: [PATCH 11/17] fix delete review function --- github/PullRequest.py | 11 ---------- github/PullRequest.pyi | 1 - github/PullRequestReview.py | 9 ++++++++ github/PullRequestReview.pyi | 1 + tests/PullRequestReview.py | 10 ++++----- .../PullRequestReview.testDelete.txt | 22 +++++++++++++++++++ 6 files changed, 37 insertions(+), 17 deletions(-) create mode 100644 tests/ReplayData/PullRequestReview.testDelete.txt diff --git a/github/PullRequest.py b/github/PullRequest.py index 85b8885f12..641f366313 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -502,17 +502,6 @@ def create_review( self._requester, headers, data, completed=True ) - def delete_pending_review(self, id): - """ - :calls: `POST /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ - :param id: integer - :rtype: None - """ - assert isinstance(id, int), id - headers, data = self._requester.requestJsonAndCheck( - "DELETE", f"{self.url}/reviews{id}" - ) - def create_review_request( self, reviewers=github.GithubObject.NotSet, diff --git a/github/PullRequest.pyi b/github/PullRequest.pyi index 9e5bbc8a82..597a85ad4a 100644 --- a/github/PullRequest.pyi +++ b/github/PullRequest.pyi @@ -56,7 +56,6 @@ class PullRequest(CompletableGithubObject): event: Union[_NotSetType, str] = ..., comments: Union[_NotSetType, str] = ..., ) -> PullRequestReview: ... - def delete_pending_review(self,id: int) -> None: ... def create_review_comment( self, body: str, commit_id: Commit, path: str, position: int ) -> PullRequestComment: ... diff --git a/github/PullRequestReview.py b/github/PullRequestReview.py index 4aa02dc9ce..c61ce87542 100644 --- a/github/PullRequestReview.py +++ b/github/PullRequestReview.py @@ -105,6 +105,15 @@ def dismiss(self, message): input=post_parameters, ) + def delete(self): + """ + :calls: `POST /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ + :rtype: None + """ + headers, data = self._requester.requestJsonAndCheck( + "DELETE", f"{self.pull_request_url}/reviews/{self.id}" + ) + def _initAttributes(self): self._id = github.GithubObject.NotSet self._user = github.GithubObject.NotSet diff --git a/github/PullRequestReview.pyi b/github/PullRequestReview.pyi index 269da086ce..e67bcc22ed 100644 --- a/github/PullRequestReview.pyi +++ b/github/PullRequestReview.pyi @@ -13,6 +13,7 @@ class PullRequestReview(CompletableGithubObject): @property def commit_id(self) -> str: ... def dismiss(self, message: str) -> None: ... + def delete(self) -> None: ... @property def html_url(self) -> str: ... @property diff --git a/tests/PullRequestReview.py b/tests/PullRequestReview.py index c39d0c2fd6..afce49e56f 100644 --- a/tests/PullRequestReview.py +++ b/tests/PullRequestReview.py @@ -55,6 +55,11 @@ def testDismiss(self): pr = self.pull.get_review(28482091) self.assertEqual(pr.state, "DISMISSED") + def testDelete(self): + self.pullreview.delete() + pr = self.pull.get_review(28482091) + self.assertEqual(pr.state, "CHANGES_REQUESTED") + def testAttributes(self): self.assertEqual(self.pullreview.id, 28482091) self.assertEqual(self.pullreview.user.login, "jzelinskie") @@ -79,8 +84,3 @@ def testAttributes(self): repr(self.pullreview), 'PullRequestReview(user=NamedUser(login="jzelinskie"), id=28482091)', ) - - def testDeleteReview(self): - self.pullreview.delete_pending_review() - review_id = self.pull.get_review(28482091) - self.assertEqual(pr.state, "CHANGES_REQUESTED") diff --git a/tests/ReplayData/PullRequestReview.testDelete.txt b/tests/ReplayData/PullRequestReview.testDelete.txt new file mode 100644 index 0000000000..ee8031b1b1 --- /dev/null +++ b/tests/ReplayData/PullRequestReview.testDelete.txt @@ -0,0 +1,22 @@ +https +DELETE +api.github.com +None +/repos/PyGithub/PyGithub/pulls/538/reviews/28482091 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} + +200 +[('content-length', '1418'), ('x-runtime-rack', '0.166821'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('x-oauth-scopes', 'admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion'), ('x-xss-protection', '1; mode=block'), ('x-content-type-options', 'nosniff'), ('x-accepted-oauth-scopes', ''), ('etag', '"f9b71d9dcbbfefb597df3b00efc8cb2a"'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('referrer-policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('status', '200 OK'), ('x-ratelimit-remaining', '4545'), ('x-github-media-type', 'github.v3; format=json'), ('access-control-expose-headers', 'ETag, Link, 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-request-id', 'DDDD:9B6D:C86D83:EADA76:5AB118D3'), ('date', 'Tue, 23 Feb 2018 23:42:09 GMT'), ('access-control-allow-origin', '*'), ('content-security-policy', "default-src 'none'"), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('x-frame-options', 'deny'), ('content-type', 'application/json; charset=utf-8'), ('x-ratelimit-reset', '1521556163')] +{"id":28482091,"user":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars3.githubusercontent.com/u/343539?v=4","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"body":"","state":"CHANGES_REQUESTED","html_url":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091","pull_request_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538","author_association":"OWNER","_links":{"html":{"href":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091"},"pull_request":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538"}},"submitted_at":"2017-03-22T19:06:59Z","commit_id":"7a0fcb27b7cd6c346fc3f76216ccb6e0f4ca3bcc"} + +https +GET +api.github.com +None +/repos/PyGithub/PyGithub/pulls/538/reviews/28482091 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('content-length', '1418'), ('x-runtime-rack', '0.166821'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('x-oauth-scopes', 'admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion'), ('x-xss-protection', '1; mode=block'), ('x-content-type-options', 'nosniff'), ('x-accepted-oauth-scopes', ''), ('etag', '"a687dafdcbb9aeb597df3b00efc8cb2a"'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('referrer-policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('status', '200 OK'), ('x-ratelimit-remaining', '4545'), ('x-github-media-type', 'github.v3; format=json'), ('access-control-expose-headers', 'ETag, Link, 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-request-id', 'DDDD:9B6D:C86D83:EADA76:5AB118D3'), ('date', 'Tue, 23 Feb 2018 23:42:19 GMT'), ('access-control-allow-origin', '*'), ('content-security-policy', "default-src 'none'"), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('x-frame-options', 'deny'), ('content-type', 'application/json; charset=utf-8'), ('x-ratelimit-reset', '1521556163')] +{"id":28482091,"user":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars3.githubusercontent.com/u/343539?v=4","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"body":"","state":"CHANGES_REQUESTED","html_url":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091","pull_request_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538","author_association":"OWNER","_links":{"html":{"href":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091"},"pull_request":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538"}},"submitted_at":"2017-03-22T19:06:59Z","commit_id":"7a0fcb27b7cd6c346fc3f76216ccb6e0f4ca3bcc"} + From 7ef516d0fcabab2e1e8f598432b3d8afe8f7424e Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Thu, 25 Mar 2021 01:59:42 +0400 Subject: [PATCH 12/17] Fix Api call in docstring --- github/PullRequestReview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/PullRequestReview.py b/github/PullRequestReview.py index c61ce87542..11c4212bc2 100644 --- a/github/PullRequestReview.py +++ b/github/PullRequestReview.py @@ -107,7 +107,7 @@ def dismiss(self, message): def delete(self): """ - :calls: `POST /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ + :calls: `DELETE /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ :rtype: None """ headers, data = self._requester.requestJsonAndCheck( From 73a95fa830ea87f83a587fbdc80e0acaa9069826 Mon Sep 17 00:00:00 2001 From: johnsc1 Date: Thu, 1 Apr 2021 11:47:51 -0400 Subject: [PATCH 13/17] Add spacing to delete() to test PR --- github/PullRequestReview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github/PullRequestReview.py b/github/PullRequestReview.py index 11c4212bc2..fcd29b3a20 100644 --- a/github/PullRequestReview.py +++ b/github/PullRequestReview.py @@ -107,8 +107,10 @@ def dismiss(self, message): def delete(self): """ + :calls: `DELETE /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ :rtype: None + """ headers, data = self._requester.requestJsonAndCheck( "DELETE", f"{self.pull_request_url}/reviews/{self.id}" From 5134d5d7315b9a3702ab9518c14e1db1973e94a9 Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Thu, 1 Apr 2021 20:16:53 +0400 Subject: [PATCH 14/17] Add new tests --- tests/PullRequestReview.py | 6 +---- tests/PullRequestReviewIssues.py | 16 ++++++++++++++ .../PullRequestReview.testDelete.txt | 22 ------------------- .../PullRequestReviewIssue.setUp.txt | 22 +++++++++++++++++++ .../PullRequestReviewIssue.testDelete.txt | 11 ++++++++++ 5 files changed, 50 insertions(+), 27 deletions(-) create mode 100644 tests/PullRequestReviewIssues.py delete mode 100644 tests/ReplayData/PullRequestReview.testDelete.txt create mode 100644 tests/ReplayData/PullRequestReviewIssue.setUp.txt create mode 100644 tests/ReplayData/PullRequestReviewIssue.testDelete.txt diff --git a/tests/PullRequestReview.py b/tests/PullRequestReview.py index afce49e56f..2594c7d8ed 100644 --- a/tests/PullRequestReview.py +++ b/tests/PullRequestReview.py @@ -32,6 +32,7 @@ class PullRequestReview(Framework.TestCase): def setUp(self): super().setUp() + self.repo = self.g.get_repo("PyGithub/PyGithub", lazy=True) self.pull = self.repo.get_pull(538) @@ -55,11 +56,6 @@ def testDismiss(self): pr = self.pull.get_review(28482091) self.assertEqual(pr.state, "DISMISSED") - def testDelete(self): - self.pullreview.delete() - pr = self.pull.get_review(28482091) - self.assertEqual(pr.state, "CHANGES_REQUESTED") - def testAttributes(self): self.assertEqual(self.pullreview.id, 28482091) self.assertEqual(self.pullreview.user.login, "jzelinskie") diff --git a/tests/PullRequestReviewIssues.py b/tests/PullRequestReviewIssues.py new file mode 100644 index 0000000000..22bcb400d4 --- /dev/null +++ b/tests/PullRequestReviewIssues.py @@ -0,0 +1,16 @@ +import datetime + +from . import Framework + + +class PullRequestReviewIssue(Framework.TestCase): + def setUp(self): + super().setUp() + pumpkin_repo = self.g.get_repo("CS481-Team-Pumpkin/PyGithub", lazy=True) + self.pumpkin_pull = pumpkin_repo.get_pull(1) + self.pullreview = self.pumpkin_pull.get_review(626417408) + + def testDelete(self): + self.pullreview.delete() + pr = self.pumpkin_pull.get_review(626417408) + self.assertEqual(pr.state, "CHANGES_REQUESTED") \ No newline at end of file diff --git a/tests/ReplayData/PullRequestReview.testDelete.txt b/tests/ReplayData/PullRequestReview.testDelete.txt deleted file mode 100644 index ee8031b1b1..0000000000 --- a/tests/ReplayData/PullRequestReview.testDelete.txt +++ /dev/null @@ -1,22 +0,0 @@ -https -DELETE -api.github.com -None -/repos/PyGithub/PyGithub/pulls/538/reviews/28482091 -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} - -200 -[('content-length', '1418'), ('x-runtime-rack', '0.166821'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('x-oauth-scopes', 'admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion'), ('x-xss-protection', '1; mode=block'), ('x-content-type-options', 'nosniff'), ('x-accepted-oauth-scopes', ''), ('etag', '"f9b71d9dcbbfefb597df3b00efc8cb2a"'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('referrer-policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('status', '200 OK'), ('x-ratelimit-remaining', '4545'), ('x-github-media-type', 'github.v3; format=json'), ('access-control-expose-headers', 'ETag, Link, 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-request-id', 'DDDD:9B6D:C86D83:EADA76:5AB118D3'), ('date', 'Tue, 23 Feb 2018 23:42:09 GMT'), ('access-control-allow-origin', '*'), ('content-security-policy', "default-src 'none'"), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('x-frame-options', 'deny'), ('content-type', 'application/json; charset=utf-8'), ('x-ratelimit-reset', '1521556163')] -{"id":28482091,"user":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars3.githubusercontent.com/u/343539?v=4","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"body":"","state":"CHANGES_REQUESTED","html_url":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091","pull_request_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538","author_association":"OWNER","_links":{"html":{"href":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091"},"pull_request":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538"}},"submitted_at":"2017-03-22T19:06:59Z","commit_id":"7a0fcb27b7cd6c346fc3f76216ccb6e0f4ca3bcc"} - -https -GET -api.github.com -None -/repos/PyGithub/PyGithub/pulls/538/reviews/28482091 -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} -None -200 -[('content-length', '1418'), ('x-runtime-rack', '0.166821'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('x-oauth-scopes', 'admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion'), ('x-xss-protection', '1; mode=block'), ('x-content-type-options', 'nosniff'), ('x-accepted-oauth-scopes', ''), ('etag', '"a687dafdcbb9aeb597df3b00efc8cb2a"'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('referrer-policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('status', '200 OK'), ('x-ratelimit-remaining', '4545'), ('x-github-media-type', 'github.v3; format=json'), ('access-control-expose-headers', 'ETag, Link, 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-request-id', 'DDDD:9B6D:C86D83:EADA76:5AB118D3'), ('date', 'Tue, 23 Feb 2018 23:42:19 GMT'), ('access-control-allow-origin', '*'), ('content-security-policy', "default-src 'none'"), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('x-frame-options', 'deny'), ('content-type', 'application/json; charset=utf-8'), ('x-ratelimit-reset', '1521556163')] -{"id":28482091,"user":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars3.githubusercontent.com/u/343539?v=4","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"body":"","state":"CHANGES_REQUESTED","html_url":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091","pull_request_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538","author_association":"OWNER","_links":{"html":{"href":"https://github.com/PyGithub/PyGithub/pull/538#pullrequestreview-28482091"},"pull_request":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/538"}},"submitted_at":"2017-03-22T19:06:59Z","commit_id":"7a0fcb27b7cd6c346fc3f76216ccb6e0f4ca3bcc"} - diff --git a/tests/ReplayData/PullRequestReviewIssue.setUp.txt b/tests/ReplayData/PullRequestReviewIssue.setUp.txt new file mode 100644 index 0000000000..e568c190c2 --- /dev/null +++ b/tests/ReplayData/PullRequestReviewIssue.setUp.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/1 +{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Apr 2021 16:04:58 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"f8e437afd446722f3c7da56af57b2f1026b660141c74188bef188de3436145b5"'), ('Last-Modified', 'Thu, 01 Apr 2021 16:01:55 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:repo_hook, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4965'), ('X-RateLimit-Reset', '1617294732'), ('X-RateLimit-Used', '35'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E0EC:E951:2FA3E:33D3C:6065EF2A')] +{"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1","id":603049045,"node_id":"MDExOlB1bGxSZXF1ZXN0NjAzMDQ5MDQ1","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1","diff_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1.diff","patch_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1.patch","issue_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1","number":1,"state":"open","locked":false,"title":"Feature delete review","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"test PR","created_at":"2021-03-29T19:04:40Z","updated_at":"2021-04-01T15:56:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f84b708e2ca3dfff4be8bf3a37294678d446d79","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/commits","review_comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/comments","review_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1/comments","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/73a95fa830ea87f83a587fbdc80e0acaa9069826","head":{"label":"CS481-Team-Pumpkin:feature-delete-review","ref":"feature-delete-review","sha":"73a95fa830ea87f83a587fbdc80e0acaa9069826","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-03-12T18:58:52Z","pushed_at":"2021-04-01T15:47:58Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13331,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CS481-Team-Pumpkin:master","ref":"master","sha":"aa24030471c56c450833cb4956b22ed8433fcdcb","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-03-12T18:58:52Z","pushed_at":"2021-04-01T15:47:58Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13331,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1"},"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1"},"issue":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1"},"comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/73a95fa830ea87f83a587fbdc80e0acaa9069826"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":13,"additions":39,"deletions":0,"changed_files":4} + +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/reviews/626417408 +{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Apr 2021 16:04:59 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"5344d3bf6746006ae8be0ed1f33ee6a041b527fe76043bd1b16d55ab078dba0d"'), ('X-OAuth-Scopes', 'admin:org, admin:repo_hook, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4964'), ('X-RateLimit-Reset', '1617294732'), ('X-RateLimit-Used', '36'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E0EE:0997:DE4C8F:E1C329:6065EF2B')] +{"id":626417408,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjI2NDE3NDA4","user":{"login":"dluman","id":1552764,"node_id":"MDQ6VXNlcjE1NTI3NjQ=","avatar_url":"https://avatars.githubusercontent.com/u/1552764?u=28b891380517e262f48fbd56410e64d2afccab7c&v=4","gravatar_id":"","url":"https://api.github.com/users/dluman","html_url":"https://github.com/dluman","followers_url":"https://api.github.com/users/dluman/followers","following_url":"https://api.github.com/users/dluman/following{/other_user}","gists_url":"https://api.github.com/users/dluman/gists{/gist_id}","starred_url":"https://api.github.com/users/dluman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dluman/subscriptions","organizations_url":"https://api.github.com/users/dluman/orgs","repos_url":"https://api.github.com/users/dluman/repos","events_url":"https://api.github.com/users/dluman/events{/privacy}","received_events_url":"https://api.github.com/users/dluman/received_events","type":"User","site_admin":false},"body":"This work is the best work I've ever seen.","state":"COMMENTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1#pullrequestreview-626417408","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1#pullrequestreview-626417408"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1"}},"submitted_at":"2021-04-01T15:56:11Z","commit_id":"73a95fa830ea87f83a587fbdc80e0acaa9069826"} + diff --git a/tests/ReplayData/PullRequestReviewIssue.testDelete.txt b/tests/ReplayData/PullRequestReviewIssue.testDelete.txt new file mode 100644 index 0000000000..b2e3e7e38b --- /dev/null +++ b/tests/ReplayData/PullRequestReviewIssue.testDelete.txt @@ -0,0 +1,11 @@ +https +DELETE +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/reviews/626417408 +{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'} +None +404 +[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Apr 2021 16:04:59 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('X-OAuth-Scopes', 'admin:org, admin:repo_hook, repo'), ('X-Accepted-OAuth-Scopes', 'public_repo, repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4963'), ('X-RateLimit-Reset', '1617294732'), ('X-RateLimit-Used', '37'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E0F0:E953:EF78B:F5687:6065EF2B')] +{"message":"Not Found","documentation_url":"https://docs.github.com/rest"} + From dffc99004b9da89e04f6628f78fd128115fbea5f Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Thu, 8 Apr 2021 18:07:43 +0400 Subject: [PATCH 15/17] Merge branch 'feature-delete-review' of github.com:CS481-Team-Pumpkin/PyGithub into feature-delete-review --- github/PullRequestReview.py | 4 +-- ...viewIssues.py => PullRequestReview1856.py} | 9 +++--- .../PullRequestReviewIssue.setUp.txt | 16 +++++----- .../PullRequestReviewIssue.testDelete.txt | 32 ++++++++++++++++--- 4 files changed, 41 insertions(+), 20 deletions(-) rename tests/{PullRequestReviewIssues.py => PullRequestReview1856.py} (51%) diff --git a/github/PullRequestReview.py b/github/PullRequestReview.py index fcd29b3a20..ee9d82449e 100644 --- a/github/PullRequestReview.py +++ b/github/PullRequestReview.py @@ -106,11 +106,9 @@ def dismiss(self, message): ) def delete(self): - """ - + """ :calls: `DELETE /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ :rtype: None - """ headers, data = self._requester.requestJsonAndCheck( "DELETE", f"{self.pull_request_url}/reviews/{self.id}" diff --git a/tests/PullRequestReviewIssues.py b/tests/PullRequestReview1856.py similarity index 51% rename from tests/PullRequestReviewIssues.py rename to tests/PullRequestReview1856.py index 22bcb400d4..87f01313cb 100644 --- a/tests/PullRequestReviewIssues.py +++ b/tests/PullRequestReview1856.py @@ -7,10 +7,11 @@ class PullRequestReviewIssue(Framework.TestCase): def setUp(self): super().setUp() pumpkin_repo = self.g.get_repo("CS481-Team-Pumpkin/PyGithub", lazy=True) - self.pumpkin_pull = pumpkin_repo.get_pull(1) - self.pullreview = self.pumpkin_pull.get_review(626417408) + self.pumpkin_pull = pumpkin_repo.get_pull(3) + self.pullreview = self.pumpkin_pull.get_review(631417478) def testDelete(self): + before = self.pumpkin_pull.get_reviews() self.pullreview.delete() - pr = self.pumpkin_pull.get_review(626417408) - self.assertEqual(pr.state, "CHANGES_REQUESTED") \ No newline at end of file + after = self.pumpkin_pull.get_reviews() + self.assertNotEqual(list(before), list(after)) \ No newline at end of file diff --git a/tests/ReplayData/PullRequestReviewIssue.setUp.txt b/tests/ReplayData/PullRequestReviewIssue.setUp.txt index e568c190c2..34ea19f6bd 100644 --- a/tests/ReplayData/PullRequestReviewIssue.setUp.txt +++ b/tests/ReplayData/PullRequestReviewIssue.setUp.txt @@ -2,21 +2,21 @@ https GET api.github.com None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/1 -{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'} +/repos/CS481-Team-Pumpkin/PyGithub/pulls/3 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Apr 2021 16:04:58 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"f8e437afd446722f3c7da56af57b2f1026b660141c74188bef188de3436145b5"'), ('Last-Modified', 'Thu, 01 Apr 2021 16:01:55 GMT'), ('X-OAuth-Scopes', 'admin:org, admin:repo_hook, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4965'), ('X-RateLimit-Reset', '1617294732'), ('X-RateLimit-Used', '35'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E0EC:E951:2FA3E:33D3C:6065EF2A')] -{"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1","id":603049045,"node_id":"MDExOlB1bGxSZXF1ZXN0NjAzMDQ5MDQ1","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1","diff_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1.diff","patch_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1.patch","issue_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1","number":1,"state":"open","locked":false,"title":"Feature delete review","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"test PR","created_at":"2021-03-29T19:04:40Z","updated_at":"2021-04-01T15:56:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f84b708e2ca3dfff4be8bf3a37294678d446d79","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/commits","review_comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/comments","review_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1/comments","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/73a95fa830ea87f83a587fbdc80e0acaa9069826","head":{"label":"CS481-Team-Pumpkin:feature-delete-review","ref":"feature-delete-review","sha":"73a95fa830ea87f83a587fbdc80e0acaa9069826","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-03-12T18:58:52Z","pushed_at":"2021-04-01T15:47:58Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13331,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CS481-Team-Pumpkin:master","ref":"master","sha":"aa24030471c56c450833cb4956b22ed8433fcdcb","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-03-12T18:58:52Z","pushed_at":"2021-04-01T15:47:58Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13331,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1"},"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1"},"issue":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1"},"comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/73a95fa830ea87f83a587fbdc80e0acaa9069826"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":13,"additions":39,"deletions":0,"changed_files":4} +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8678a9f12e64902a937b447fd2ba5a29ab453b745ebf1b4e0888e0e3b545ef65"'), ('Last-Modified', 'Thu, 08 Apr 2021 13:48:12 GMT'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4930'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '70'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E962:109E5:1AB0A:20AEF:606F0AEA')] +{"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","id":609161589,"node_id":"MDExOlB1bGxSZXF1ZXN0NjA5MTYxNTg5","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3","diff_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3.diff","patch_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3.patch","issue_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3","number":3,"state":"open","locked":false,"title":"Testing pending review","user":{"login":"johnsc1","id":42869556,"node_id":"MDQ6VXNlcjQyODY5NTU2","avatar_url":"https://avatars.githubusercontent.com/u/42869556?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsc1","html_url":"https://github.com/johnsc1","followers_url":"https://api.github.com/users/johnsc1/followers","following_url":"https://api.github.com/users/johnsc1/following{/other_user}","gists_url":"https://api.github.com/users/johnsc1/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsc1/subscriptions","organizations_url":"https://api.github.com/users/johnsc1/orgs","repos_url":"https://api.github.com/users/johnsc1/repos","events_url":"https://api.github.com/users/johnsc1/events{/privacy}","received_events_url":"https://api.github.com/users/johnsc1/received_events","type":"User","site_admin":false},"body":"Testing the issues with pending reviews. The change made on this branch is a space added in the first line of the docstring for delete( ) in github/PullRequestReview.py ","created_at":"2021-04-05T19:51:17Z","updated_at":"2021-04-08T13:48:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1438bb6492dc4b5edac450609e0c27ba0ac331e7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},{"login":"WonjoonC","id":46755914,"node_id":"MDQ6VXNlcjQ2NzU1OTE0","avatar_url":"https://avatars.githubusercontent.com/u/46755914?v=4","gravatar_id":"","url":"https://api.github.com/users/WonjoonC","html_url":"https://github.com/WonjoonC","followers_url":"https://api.github.com/users/WonjoonC/followers","following_url":"https://api.github.com/users/WonjoonC/following{/other_user}","gists_url":"https://api.github.com/users/WonjoonC/gists{/gist_id}","starred_url":"https://api.github.com/users/WonjoonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonjoonC/subscriptions","organizations_url":"https://api.github.com/users/WonjoonC/orgs","repos_url":"https://api.github.com/users/WonjoonC/repos","events_url":"https://api.github.com/users/WonjoonC/events{/privacy}","received_events_url":"https://api.github.com/users/WonjoonC/received_events","type":"User","site_admin":false},{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/commits","review_comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/comments","review_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3/comments","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/1f915da1ae3d732ce6fe26677c1df38d69307f2f","head":{"label":"CS481-Team-Pumpkin:test-2-feature-delete-review","ref":"test-2-feature-delete-review","sha":"1f915da1ae3d732ce6fe26677c1df38d69307f2f","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-04-02T17:52:24Z","pushed_at":"2021-04-05T19:51:17Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13338,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"CS481-Team-Pumpkin:master","ref":"master","sha":"7f0a239bc797a071e512b763dfd3e4339191dc18","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-04-02T17:52:24Z","pushed_at":"2021-04-05T19:51:17Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13338,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"},"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3"},"issue":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3"},"comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/1f915da1ae3d732ce6fe26677c1df38d69307f2f"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":1,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1} https GET api.github.com None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/reviews/626417408 -{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'} +/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews/631417478 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Apr 2021 16:04:59 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"5344d3bf6746006ae8be0ed1f33ee6a041b527fe76043bd1b16d55ab078dba0d"'), ('X-OAuth-Scopes', 'admin:org, admin:repo_hook, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4964'), ('X-RateLimit-Reset', '1617294732'), ('X-RateLimit-Used', '36'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E0EE:0997:DE4C8F:E1C329:6065EF2B')] -{"id":626417408,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjI2NDE3NDA4","user":{"login":"dluman","id":1552764,"node_id":"MDQ6VXNlcjE1NTI3NjQ=","avatar_url":"https://avatars.githubusercontent.com/u/1552764?u=28b891380517e262f48fbd56410e64d2afccab7c&v=4","gravatar_id":"","url":"https://api.github.com/users/dluman","html_url":"https://github.com/dluman","followers_url":"https://api.github.com/users/dluman/followers","following_url":"https://api.github.com/users/dluman/following{/other_user}","gists_url":"https://api.github.com/users/dluman/gists{/gist_id}","starred_url":"https://api.github.com/users/dluman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dluman/subscriptions","organizations_url":"https://api.github.com/users/dluman/orgs","repos_url":"https://api.github.com/users/dluman/repos","events_url":"https://api.github.com/users/dluman/events{/privacy}","received_events_url":"https://api.github.com/users/dluman/received_events","type":"User","site_admin":false},"body":"This work is the best work I've ever seen.","state":"COMMENTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1#pullrequestreview-626417408","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/1#pullrequestreview-626417408"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/1"}},"submitted_at":"2021-04-01T15:56:11Z","commit_id":"73a95fa830ea87f83a587fbdc80e0acaa9069826"} +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"e8ca98b58bae67532a3fea9bd989ab6883d0f1f725e20458e523cec64d5cf61c"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4929'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '71'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E964:6EEB:1BD1C7:1C64D4:606F0AEB')] +{"id":631417478,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMxNDE3NDc4","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","state":"PENDING","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"} diff --git a/tests/ReplayData/PullRequestReviewIssue.testDelete.txt b/tests/ReplayData/PullRequestReviewIssue.testDelete.txt index b2e3e7e38b..ab8095480a 100644 --- a/tests/ReplayData/PullRequestReviewIssue.testDelete.txt +++ b/tests/ReplayData/PullRequestReviewIssue.testDelete.txt @@ -2,10 +2,32 @@ https DELETE api.github.com None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/1/reviews/626417408 -{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'} +/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews/631417478 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None -404 -[('Server', 'GitHub.com'), ('Date', 'Thu, 01 Apr 2021 16:04:59 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('X-OAuth-Scopes', 'admin:org, admin:repo_hook, repo'), ('X-Accepted-OAuth-Scopes', 'public_repo, repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4963'), ('X-RateLimit-Reset', '1617294732'), ('X-RateLimit-Used', '37'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E0F0:E953:EF78B:F5687:6065EF2B')] -{"message":"Not Found","documentation_url":"https://docs.github.com/rest"} +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"e8ca98b58bae67532a3fea9bd989ab6883d0f1f725e20458e523cec64d5cf61c"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', 'public_repo, repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4928'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '72'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E966:C6E6:28AD05:2962CF:606F0AEC')] +{"id":631417478,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMxNDE3NDc4","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","state":"PENDING","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"} + +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"20f9ba25d49e32252ce474236cc9f356e925f66dc0a2da7b47d61124f9893cfc"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4927'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '73'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E968:317C:2D1EDB:2DD1C7:606F0AEC')] +[{"id":630326127,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI2MTI3","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"This is part of my review.","state":"COMMENTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T17:59:10Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"},{"id":630327538,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI3NTM4","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"Test","state":"CHANGES_REQUESTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T18:00:44Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"}] + +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"20f9ba25d49e32252ce474236cc9f356e925f66dc0a2da7b47d61124f9893cfc"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4926'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '74'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E96A:485E:1D25A7:1DBC37:606F0AED')] +[{"id":630326127,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI2MTI3","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"This is part of my review.","state":"COMMENTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T17:59:10Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"},{"id":630327538,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI3NTM4","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"Test","state":"CHANGES_REQUESTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T18:00:44Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"}] From b767e056a81ac30541b9bd1f76eab5530bd903b5 Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Thu, 8 Apr 2021 18:30:11 +0400 Subject: [PATCH 16/17] Fix test assertion and generate new replay data --- tests/PullRequestReview1856.py | 11 +++---- .../PullRequestReview1856.setUp.txt | 22 +++++++++++++ .../PullRequestReview1856.testDelete.txt | 22 +++++++++++++ .../PullRequestReviewIssue.setUp.txt | 22 ------------- .../PullRequestReviewIssue.testDelete.txt | 33 ------------------- 5 files changed, 49 insertions(+), 61 deletions(-) create mode 100644 tests/ReplayData/PullRequestReview1856.setUp.txt create mode 100644 tests/ReplayData/PullRequestReview1856.testDelete.txt delete mode 100644 tests/ReplayData/PullRequestReviewIssue.setUp.txt delete mode 100644 tests/ReplayData/PullRequestReviewIssue.testDelete.txt diff --git a/tests/PullRequestReview1856.py b/tests/PullRequestReview1856.py index 87f01313cb..64097f4a6a 100644 --- a/tests/PullRequestReview1856.py +++ b/tests/PullRequestReview1856.py @@ -3,15 +3,14 @@ from . import Framework -class PullRequestReviewIssue(Framework.TestCase): +class PullRequestReview1856(Framework.TestCase): def setUp(self): super().setUp() pumpkin_repo = self.g.get_repo("CS481-Team-Pumpkin/PyGithub", lazy=True) - self.pumpkin_pull = pumpkin_repo.get_pull(3) - self.pullreview = self.pumpkin_pull.get_review(631417478) + self.pumpkin_pull = pumpkin_repo.get_pull(4) + self.pullreview = self.pumpkin_pull.get_review(631460061) def testDelete(self): - before = self.pumpkin_pull.get_reviews() self.pullreview.delete() - after = self.pumpkin_pull.get_reviews() - self.assertNotEqual(list(before), list(after)) \ No newline at end of file + reviews = self.pumpkin_pull.get_reviews() + self.assertEqual(list(reviews), []) \ No newline at end of file diff --git a/tests/ReplayData/PullRequestReview1856.setUp.txt b/tests/ReplayData/PullRequestReview1856.setUp.txt new file mode 100644 index 0000000000..70ffa8a9c3 --- /dev/null +++ b/tests/ReplayData/PullRequestReview1856.setUp.txt @@ -0,0 +1,22 @@ +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/4 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 14:27:12 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8639f2457cf97f5885ced460b20f8f7d17d5c09930e448de42e75b78426cd8e8"'), ('Last-Modified', 'Thu, 08 Apr 2021 14:23:05 GMT'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4993'), ('X-RateLimit-Reset', '1617895279'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EB48:109EA:37F217:38E505:606F12C0')] +{"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4","id":611598215,"node_id":"MDExOlB1bGxSZXF1ZXN0NjExNTk4MjE1","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4","diff_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4.diff","patch_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4.patch","issue_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/4","number":4,"state":"open","locked":false,"title":"Test commit","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","created_at":"2021-04-08T14:16:39Z","updated_at":"2021-04-08T14:23:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07c3d56fa500c0f03a403136ba62cbbec6f148b0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/commits","review_comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/comments","review_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/4/comments","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/a99c92b2ba68464a1a05d7fa8ef55e3a98803e5f","head":{"label":"CS481-Team-Pumpkin:test_delete_pending_review","ref":"test_delete_pending_review","sha":"a99c92b2ba68464a1a05d7fa8ef55e3a98803e5f","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-04-02T17:52:24Z","pushed_at":"2021-04-08T14:16:39Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13338,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":3,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"CS481-Team-Pumpkin:master","ref":"master","sha":"7f0a239bc797a071e512b763dfd3e4339191dc18","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-04-02T17:52:24Z","pushed_at":"2021-04-08T14:16:39Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13338,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":3,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4"},"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4"},"issue":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/4"},"comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/a99c92b2ba68464a1a05d7fa8ef55e3a98803e5f"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":1,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1} + +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/reviews/631460061 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 14:27:13 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"2cb2134a474a60fa86391e682a41332b9ce4e92e41b9e7d2039ce2e6c64ae80e"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4992'), ('X-RateLimit-Reset', '1617895279'), ('X-RateLimit-Used', '8'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EB4A:950E:125F8E:13037F:606F12C0')] +{"id":631460061,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMxNDYwMDYx","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","state":"PENDING","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4#pullrequestreview-631460061","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4#pullrequestreview-631460061"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4"}},"commit_id":"a99c92b2ba68464a1a05d7fa8ef55e3a98803e5f"} + diff --git a/tests/ReplayData/PullRequestReview1856.testDelete.txt b/tests/ReplayData/PullRequestReview1856.testDelete.txt new file mode 100644 index 0000000000..47bb025c03 --- /dev/null +++ b/tests/ReplayData/PullRequestReview1856.testDelete.txt @@ -0,0 +1,22 @@ +https +DELETE +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/reviews/631460061 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 14:27:14 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"2cb2134a474a60fa86391e682a41332b9ce4e92e41b9e7d2039ce2e6c64ae80e"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', 'public_repo, repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4991'), ('X-RateLimit-Reset', '1617895279'), ('X-RateLimit-Used', '9'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'EB4C:74D7:85110:8A249:606F12C1')] +{"id":631460061,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMxNDYwMDYx","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","state":"PENDING","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4#pullrequestreview-631460061","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/4#pullrequestreview-631460061"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/4"}},"commit_id":"a99c92b2ba68464a1a05d7fa8ef55e3a98803e5f"} + +https +GET +api.github.com +None +/repos/CS481-Team-Pumpkin/PyGithub/pulls/4/reviews +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 14:27:14 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', '"82184cd6a599c0bb646629f3cbc867fb158314f97d57df6e35f0e910ed328f22"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4990'), ('X-RateLimit-Reset', '1617895279'), ('X-RateLimit-Used', '10'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', 'EB4E:109E6:83D8B:8CA9B:606F12C2')] +[] + diff --git a/tests/ReplayData/PullRequestReviewIssue.setUp.txt b/tests/ReplayData/PullRequestReviewIssue.setUp.txt deleted file mode 100644 index 34ea19f6bd..0000000000 --- a/tests/ReplayData/PullRequestReviewIssue.setUp.txt +++ /dev/null @@ -1,22 +0,0 @@ -https -GET -api.github.com -None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/3 -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} -None -200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8678a9f12e64902a937b447fd2ba5a29ab453b745ebf1b4e0888e0e3b545ef65"'), ('Last-Modified', 'Thu, 08 Apr 2021 13:48:12 GMT'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4930'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '70'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E962:109E5:1AB0A:20AEF:606F0AEA')] -{"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","id":609161589,"node_id":"MDExOlB1bGxSZXF1ZXN0NjA5MTYxNTg5","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3","diff_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3.diff","patch_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3.patch","issue_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3","number":3,"state":"open","locked":false,"title":"Testing pending review","user":{"login":"johnsc1","id":42869556,"node_id":"MDQ6VXNlcjQyODY5NTU2","avatar_url":"https://avatars.githubusercontent.com/u/42869556?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsc1","html_url":"https://github.com/johnsc1","followers_url":"https://api.github.com/users/johnsc1/followers","following_url":"https://api.github.com/users/johnsc1/following{/other_user}","gists_url":"https://api.github.com/users/johnsc1/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsc1/subscriptions","organizations_url":"https://api.github.com/users/johnsc1/orgs","repos_url":"https://api.github.com/users/johnsc1/repos","events_url":"https://api.github.com/users/johnsc1/events{/privacy}","received_events_url":"https://api.github.com/users/johnsc1/received_events","type":"User","site_admin":false},"body":"Testing the issues with pending reviews. The change made on this branch is a space added in the first line of the docstring for delete( ) in github/PullRequestReview.py ","created_at":"2021-04-05T19:51:17Z","updated_at":"2021-04-08T13:48:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1438bb6492dc4b5edac450609e0c27ba0ac331e7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},{"login":"WonjoonC","id":46755914,"node_id":"MDQ6VXNlcjQ2NzU1OTE0","avatar_url":"https://avatars.githubusercontent.com/u/46755914?v=4","gravatar_id":"","url":"https://api.github.com/users/WonjoonC","html_url":"https://github.com/WonjoonC","followers_url":"https://api.github.com/users/WonjoonC/followers","following_url":"https://api.github.com/users/WonjoonC/following{/other_user}","gists_url":"https://api.github.com/users/WonjoonC/gists{/gist_id}","starred_url":"https://api.github.com/users/WonjoonC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonjoonC/subscriptions","organizations_url":"https://api.github.com/users/WonjoonC/orgs","repos_url":"https://api.github.com/users/WonjoonC/repos","events_url":"https://api.github.com/users/WonjoonC/events{/privacy}","received_events_url":"https://api.github.com/users/WonjoonC/received_events","type":"User","site_admin":false},{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/commits","review_comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/comments","review_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3/comments","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/1f915da1ae3d732ce6fe26677c1df38d69307f2f","head":{"label":"CS481-Team-Pumpkin:test-2-feature-delete-review","ref":"test-2-feature-delete-review","sha":"1f915da1ae3d732ce6fe26677c1df38d69307f2f","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-04-02T17:52:24Z","pushed_at":"2021-04-05T19:51:17Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13338,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"CS481-Team-Pumpkin:master","ref":"master","sha":"7f0a239bc797a071e512b763dfd3e4339191dc18","user":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"repo":{"id":347169081,"node_id":"MDEwOlJlcG9zaXRvcnkzNDcxNjkwODE=","name":"PyGithub","full_name":"CS481-Team-Pumpkin/PyGithub","private":false,"owner":{"login":"CS481-Team-Pumpkin","id":80543978,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNTQzOTc4","avatar_url":"https://avatars.githubusercontent.com/u/80543978?v=4","gravatar_id":"","url":"https://api.github.com/users/CS481-Team-Pumpkin","html_url":"https://github.com/CS481-Team-Pumpkin","followers_url":"https://api.github.com/users/CS481-Team-Pumpkin/followers","following_url":"https://api.github.com/users/CS481-Team-Pumpkin/following{/other_user}","gists_url":"https://api.github.com/users/CS481-Team-Pumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/CS481-Team-Pumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS481-Team-Pumpkin/subscriptions","organizations_url":"https://api.github.com/users/CS481-Team-Pumpkin/orgs","repos_url":"https://api.github.com/users/CS481-Team-Pumpkin/repos","events_url":"https://api.github.com/users/CS481-Team-Pumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/CS481-Team-Pumpkin/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub","forks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/forks","keys_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/teams","hooks_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/events","assignees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/tags","blobs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/languages","stargazers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/subscription","commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/merges","archive_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/downloads","issues_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/deployments","created_at":"2021-03-12T18:58:51Z","updated_at":"2021-04-02T17:52:24Z","pushed_at":"2021-04-05T19:51:17Z","git_url":"git://github.com/CS481-Team-Pumpkin/PyGithub.git","ssh_url":"git@github.com:CS481-Team-Pumpkin/PyGithub.git","clone_url":"https://github.com/CS481-Team-Pumpkin/PyGithub.git","svn_url":"https://github.com/CS481-Team-Pumpkin/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":13338,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"},"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3"},"issue":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3"},"comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/statuses/1f915da1ae3d732ce6fe26677c1df38d69307f2f"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":1,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1} - -https -GET -api.github.com -None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews/631417478 -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} -None -200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:47 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"e8ca98b58bae67532a3fea9bd989ab6883d0f1f725e20458e523cec64d5cf61c"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4929'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '71'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E964:6EEB:1BD1C7:1C64D4:606F0AEB')] -{"id":631417478,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMxNDE3NDc4","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","state":"PENDING","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"} - diff --git a/tests/ReplayData/PullRequestReviewIssue.testDelete.txt b/tests/ReplayData/PullRequestReviewIssue.testDelete.txt deleted file mode 100644 index ab8095480a..0000000000 --- a/tests/ReplayData/PullRequestReviewIssue.testDelete.txt +++ /dev/null @@ -1,33 +0,0 @@ -https -DELETE -api.github.com -None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews/631417478 -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} -None -200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:48 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"e8ca98b58bae67532a3fea9bd989ab6883d0f1f725e20458e523cec64d5cf61c"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', 'public_repo, repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4928'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '72'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E966:C6E6:28AD05:2962CF:606F0AEC')] -{"id":631417478,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMxNDE3NDc4","user":{"login":"bagashvilit","id":46755932,"node_id":"MDQ6VXNlcjQ2NzU1OTMy","avatar_url":"https://avatars.githubusercontent.com/u/46755932?v=4","gravatar_id":"","url":"https://api.github.com/users/bagashvilit","html_url":"https://github.com/bagashvilit","followers_url":"https://api.github.com/users/bagashvilit/followers","following_url":"https://api.github.com/users/bagashvilit/following{/other_user}","gists_url":"https://api.github.com/users/bagashvilit/gists{/gist_id}","starred_url":"https://api.github.com/users/bagashvilit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagashvilit/subscriptions","organizations_url":"https://api.github.com/users/bagashvilit/orgs","repos_url":"https://api.github.com/users/bagashvilit/repos","events_url":"https://api.github.com/users/bagashvilit/events{/privacy}","received_events_url":"https://api.github.com/users/bagashvilit/received_events","type":"User","site_admin":false},"body":"","state":"PENDING","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-631417478"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"} - -https -GET -api.github.com -None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} -None -200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:49 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"20f9ba25d49e32252ce474236cc9f356e925f66dc0a2da7b47d61124f9893cfc"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4927'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '73'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E968:317C:2D1EDB:2DD1C7:606F0AEC')] -[{"id":630326127,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI2MTI3","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"This is part of my review.","state":"COMMENTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T17:59:10Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"},{"id":630327538,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI3NTM4","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"Test","state":"CHANGES_REQUESTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T18:00:44Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"}] - -https -GET -api.github.com -None -/repos/CS481-Team-Pumpkin/PyGithub/pulls/3/reviews -{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} -None -200 -[('Server', 'GitHub.com'), ('Date', 'Thu, 08 Apr 2021 13:53:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"20f9ba25d49e32252ce474236cc9f356e925f66dc0a2da7b47d61124f9893cfc"'), ('X-OAuth-Scopes', 'admin:org, repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4926'), ('X-RateLimit-Reset', '1617890833'), ('X-RateLimit-Used', '74'), ('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', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'E96A:485E:1D25A7:1DBC37:606F0AED')] -[{"id":630326127,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI2MTI3","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"This is part of my review.","state":"COMMENTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630326127"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T17:59:10Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"},{"id":630327538,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NjMwMzI3NTM4","user":{"login":"lussierc","id":32375724,"node_id":"MDQ6VXNlcjMyMzc1NzI0","avatar_url":"https://avatars.githubusercontent.com/u/32375724?u=7f206b7abdf0ebde00c02ca46c3166017337e98e&v=4","gravatar_id":"","url":"https://api.github.com/users/lussierc","html_url":"https://github.com/lussierc","followers_url":"https://api.github.com/users/lussierc/followers","following_url":"https://api.github.com/users/lussierc/following{/other_user}","gists_url":"https://api.github.com/users/lussierc/gists{/gist_id}","starred_url":"https://api.github.com/users/lussierc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lussierc/subscriptions","organizations_url":"https://api.github.com/users/lussierc/orgs","repos_url":"https://api.github.com/users/lussierc/repos","events_url":"https://api.github.com/users/lussierc/events{/privacy}","received_events_url":"https://api.github.com/users/lussierc/received_events","type":"User","site_admin":false},"body":"Test","state":"CHANGES_REQUESTED","html_url":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538","pull_request_url":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3","author_association":"MEMBER","_links":{"html":{"href":"https://github.com/CS481-Team-Pumpkin/PyGithub/pull/3#pullrequestreview-630327538"},"pull_request":{"href":"https://api.github.com/repos/CS481-Team-Pumpkin/PyGithub/pulls/3"}},"submitted_at":"2021-04-07T18:00:44Z","commit_id":"1f915da1ae3d732ce6fe26677c1df38d69307f2f"}] - From 024f0d088d531873efe860a4d095db9b2807d484 Mon Sep 17 00:00:00 2001 From: bagashvilit Date: Thu, 8 Apr 2021 18:46:34 +0400 Subject: [PATCH 17/17] lint the code --- github/PullRequestReview.py | 2 +- tests/PullRequestReview1856.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/github/PullRequestReview.py b/github/PullRequestReview.py index ee9d82449e..11c4212bc2 100644 --- a/github/PullRequestReview.py +++ b/github/PullRequestReview.py @@ -106,7 +106,7 @@ def dismiss(self, message): ) def delete(self): - """ + """ :calls: `DELETE /repos/:owner/:repo/pulls/:number/reviews/:review_id `_ :rtype: None """ diff --git a/tests/PullRequestReview1856.py b/tests/PullRequestReview1856.py index 64097f4a6a..4343bac016 100644 --- a/tests/PullRequestReview1856.py +++ b/tests/PullRequestReview1856.py @@ -1,5 +1,3 @@ -import datetime - from . import Framework @@ -13,4 +11,4 @@ def setUp(self): def testDelete(self): self.pullreview.delete() reviews = self.pumpkin_pull.get_reviews() - self.assertEqual(list(reviews), []) \ No newline at end of file + self.assertEqual(list(reviews), [])