diff --git a/github/PullRequest.py b/github/PullRequest.py index 685f0efb..fae5b337 100644 --- a/github/PullRequest.py +++ b/github/PullRequest.py @@ -422,7 +422,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject): ) return github.IssueComment.IssueComment(self._requester, headers, data, completed=True) - def create_review(self, commit=github.GithubObject.NotSet, body=None, event=github.GithubObject.NotSet, comments=github.GithubObject.NotSet): + def create_review(self, commit=github.GithubObject.NotSet, body=github.GithubObject.NotSet, event=github.GithubObject.NotSet, comments=github.GithubObject.NotSet): """ :calls: `POST /repos/:owner/:repo/pulls/:number/reviews `_ :param commit: github.Commit.Commit @@ -432,13 +432,14 @@ class PullRequest(github.GithubObject.CompletableGithubObject): :rtype: :class:`github.PullRequestReview.PullRequestReview` """ assert commit is github.GithubObject.NotSet or isinstance(commit, github.Commit.Commit), commit - assert isinstance(body, str), body + assert body is github.GithubObject.NotSet or isinstance(body, str), body assert event is github.GithubObject.NotSet or isinstance(event, str), event assert comments is github.GithubObject.NotSet or isinstance(comments, list), comments post_parameters = dict() if commit is not github.GithubObject.NotSet: post_parameters['commit_id'] = commit.sha - post_parameters['body'] = body + if body is not github.GithubObject.NotSet: + post_parameters['body'] = body post_parameters['event'] = 'COMMENT' if event == github.GithubObject.NotSet else event if comments is github.GithubObject.NotSet: post_parameters['comments'] = [] diff --git a/tests/AllTests.py b/tests/AllTests.py index 66b819f9..64fb9195 100644 --- a/tests/AllTests.py +++ b/tests/AllTests.py @@ -128,3 +128,5 @@ from .Issue572 import * from .Issue937 import * from .Issue945 import * from .Issue823 import * + +from .PullRequest1169 import * diff --git a/tests/PullRequest1169.py b/tests/PullRequest1169.py new file mode 100644 index 00000000..458f6465 --- /dev/null +++ b/tests/PullRequest1169.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- + +############################ Copyrights and license ############################ +# # +# Copyright 2019 Olof-Joachim Frahm # +# # +# This file is part of PyGithub. # +# http://pygithub.readthedocs.io/ # +# # +# PyGithub is free software: you can redistribute it and/or modify it under # +# the terms of the GNU Lesser General Public License as published by the Free # +# Software Foundation, either version 3 of the License, or (at your option) # +# any later version. # +# # +# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # +# details. # +# # +# You should have received a copy of the GNU Lesser General Public License # +# along with PyGithub. If not, see . # +# # +################################################################################ + +from __future__ import absolute_import +from . import Framework + +import datetime + + +class PullRequest1169(Framework.TestCase): + def setUp(self): + Framework.TestCase.setUp(self) + ferada_repo = self.g.get_repo("coleslaw-org/coleslaw", lazy=True) + self.pull = ferada_repo.get_pull(173) + + def testReviewApproveWithoutBody(self): + r = self.pull.create_review(event="APPROVE") + self.assertEqual(r.id, 261942907) + self.assertEqual(r.user.login, "Ferada") diff --git a/tests/ReplayData/PullRequest1169.setUp.txt b/tests/ReplayData/PullRequest1169.setUp.txt new file mode 100644 index 00000000..49702497 --- /dev/null +++ b/tests/ReplayData/PullRequest1169.setUp.txt @@ -0,0 +1,11 @@ +https +GET +api.github.com +None +/repos/coleslaw-org/coleslaw/pulls/173 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Date', 'Mon, 15 Jul 2019 16:42:29 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4996'), ('X-RateLimit-Reset', '1563212378'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('ETag', 'W/"008b74d487f841788d500932ead14cf7"'), ('Last-Modified', 'Sun, 14 Jul 2019 20:51:11 GMT'), ('X-OAuth-Scopes', 'notifications, public_repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '9690:402B9:60ABD6C:77A1AD7:5D2CACF5')] +{"url":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173","id":297328454,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk3MzI4NDU0","html_url":"https://github.com/coleslaw-org/coleslaw/pull/173","diff_url":"https://github.com/coleslaw-org/coleslaw/pull/173.diff","patch_url":"https://github.com/coleslaw-org/coleslaw/pull/173.patch","issue_url":"https://api.github.com/repos/coleslaw-org/coleslaw/issues/173","number":173,"state":"open","locked":false,"title":"Add mailing list from common-lisp.net","user":{"login":"equwal","id":13551856,"node_id":"MDQ6VXNlcjEzNTUxODU2","avatar_url":"https://avatars3.githubusercontent.com/u/13551856?v=4","gravatar_id":"","url":"https://api.github.com/users/equwal","html_url":"https://github.com/equwal","followers_url":"https://api.github.com/users/equwal/followers","following_url":"https://api.github.com/users/equwal/following{/other_user}","gists_url":"https://api.github.com/users/equwal/gists{/gist_id}","starred_url":"https://api.github.com/users/equwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equwal/subscriptions","organizations_url":"https://api.github.com/users/equwal/orgs","repos_url":"https://api.github.com/users/equwal/repos","events_url":"https://api.github.com/users/equwal/events{/privacy}","received_events_url":"https://api.github.com/users/equwal/received_events","type":"User","site_admin":false},"body":"common-lisp.net has graciously made a mailing list for coleslaw (at my request, by snail mail). I'd be happy to hand out permissions to the current maintainers of Coleslaw. Currently it is just me; hopefully this is okay.\r\n\r\ncoleslaw@common-lisp.net\r\nhttps://mailman.common-lisp.net/listinfo/coleslaw","created_at":"2019-07-13T16:17:51Z","updated_at":"2019-07-14T20:51:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4b12646f8fd50bc51fe7476fd9c0664fb0051a7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173/commits","review_comments_url":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173/comments","review_comment_url":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coleslaw-org/coleslaw/issues/173/comments","statuses_url":"https://api.github.com/repos/coleslaw-org/coleslaw/statuses/8492120a51c13d713c8a9121f079de2220190ce5","head":{"label":"equwal:mailing-list","ref":"mailing-list","sha":"8492120a51c13d713c8a9121f079de2220190ce5","user":{"login":"equwal","id":13551856,"node_id":"MDQ6VXNlcjEzNTUxODU2","avatar_url":"https://avatars3.githubusercontent.com/u/13551856?v=4","gravatar_id":"","url":"https://api.github.com/users/equwal","html_url":"https://github.com/equwal","followers_url":"https://api.github.com/users/equwal/followers","following_url":"https://api.github.com/users/equwal/following{/other_user}","gists_url":"https://api.github.com/users/equwal/gists{/gist_id}","starred_url":"https://api.github.com/users/equwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equwal/subscriptions","organizations_url":"https://api.github.com/users/equwal/orgs","repos_url":"https://api.github.com/users/equwal/repos","events_url":"https://api.github.com/users/equwal/events{/privacy}","received_events_url":"https://api.github.com/users/equwal/received_events","type":"User","site_admin":false},"repo":{"id":191131427,"node_id":"MDEwOlJlcG9zaXRvcnkxOTExMzE0Mjc=","name":"coleslaw-1","full_name":"equwal/coleslaw-1","private":false,"owner":{"login":"equwal","id":13551856,"node_id":"MDQ6VXNlcjEzNTUxODU2","avatar_url":"https://avatars3.githubusercontent.com/u/13551856?v=4","gravatar_id":"","url":"https://api.github.com/users/equwal","html_url":"https://github.com/equwal","followers_url":"https://api.github.com/users/equwal/followers","following_url":"https://api.github.com/users/equwal/following{/other_user}","gists_url":"https://api.github.com/users/equwal/gists{/gist_id}","starred_url":"https://api.github.com/users/equwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equwal/subscriptions","organizations_url":"https://api.github.com/users/equwal/orgs","repos_url":"https://api.github.com/users/equwal/repos","events_url":"https://api.github.com/users/equwal/events{/privacy}","received_events_url":"https://api.github.com/users/equwal/received_events","type":"User","site_admin":false},"html_url":"https://github.com/equwal/coleslaw-1","description":"Flexible Lisp Blogware","fork":true,"url":"https://api.github.com/repos/equwal/coleslaw-1","forks_url":"https://api.github.com/repos/equwal/coleslaw-1/forks","keys_url":"https://api.github.com/repos/equwal/coleslaw-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/equwal/coleslaw-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/equwal/coleslaw-1/teams","hooks_url":"https://api.github.com/repos/equwal/coleslaw-1/hooks","issue_events_url":"https://api.github.com/repos/equwal/coleslaw-1/issues/events{/number}","events_url":"https://api.github.com/repos/equwal/coleslaw-1/events","assignees_url":"https://api.github.com/repos/equwal/coleslaw-1/assignees{/user}","branches_url":"https://api.github.com/repos/equwal/coleslaw-1/branches{/branch}","tags_url":"https://api.github.com/repos/equwal/coleslaw-1/tags","blobs_url":"https://api.github.com/repos/equwal/coleslaw-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/equwal/coleslaw-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/equwal/coleslaw-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/equwal/coleslaw-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/equwal/coleslaw-1/statuses/{sha}","languages_url":"https://api.github.com/repos/equwal/coleslaw-1/languages","stargazers_url":"https://api.github.com/repos/equwal/coleslaw-1/stargazers","contributors_url":"https://api.github.com/repos/equwal/coleslaw-1/contributors","subscribers_url":"https://api.github.com/repos/equwal/coleslaw-1/subscribers","subscription_url":"https://api.github.com/repos/equwal/coleslaw-1/subscription","commits_url":"https://api.github.com/repos/equwal/coleslaw-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/equwal/coleslaw-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/equwal/coleslaw-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/equwal/coleslaw-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/equwal/coleslaw-1/contents/{+path}","compare_url":"https://api.github.com/repos/equwal/coleslaw-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/equwal/coleslaw-1/merges","archive_url":"https://api.github.com/repos/equwal/coleslaw-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/equwal/coleslaw-1/downloads","issues_url":"https://api.github.com/repos/equwal/coleslaw-1/issues{/number}","pulls_url":"https://api.github.com/repos/equwal/coleslaw-1/pulls{/number}","milestones_url":"https://api.github.com/repos/equwal/coleslaw-1/milestones{/number}","notifications_url":"https://api.github.com/repos/equwal/coleslaw-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/equwal/coleslaw-1/labels{/name}","releases_url":"https://api.github.com/repos/equwal/coleslaw-1/releases{/id}","deployments_url":"https://api.github.com/repos/equwal/coleslaw-1/deployments","created_at":"2019-06-10T08:51:13Z","updated_at":"2019-06-16T13:17:52Z","pushed_at":"2019-07-13T16:16:27Z","git_url":"git://github.com/equwal/coleslaw-1.git","ssh_url":"git@github.com:equwal/coleslaw-1.git","clone_url":"https://github.com/equwal/coleslaw-1.git","svn_url":"https://github.com/equwal/coleslaw-1","homepage":"","size":1149,"stargazers_count":0,"watchers_count":0,"language":"Common Lisp","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coleslaw-org:master","ref":"master","sha":"992f3aba7b489dc9b4420463ebaa6f357edcf80c","user":{"login":"coleslaw-org","id":51827762,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxODI3NzYy","avatar_url":"https://avatars0.githubusercontent.com/u/51827762?v=4","gravatar_id":"","url":"https://api.github.com/users/coleslaw-org","html_url":"https://github.com/coleslaw-org","followers_url":"https://api.github.com/users/coleslaw-org/followers","following_url":"https://api.github.com/users/coleslaw-org/following{/other_user}","gists_url":"https://api.github.com/users/coleslaw-org/gists{/gist_id}","starred_url":"https://api.github.com/users/coleslaw-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleslaw-org/subscriptions","organizations_url":"https://api.github.com/users/coleslaw-org/orgs","repos_url":"https://api.github.com/users/coleslaw-org/repos","events_url":"https://api.github.com/users/coleslaw-org/events{/privacy}","received_events_url":"https://api.github.com/users/coleslaw-org/received_events","type":"Organization","site_admin":false},"repo":{"id":1387472,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3NDcy","name":"coleslaw","full_name":"coleslaw-org/coleslaw","private":false,"owner":{"login":"coleslaw-org","id":51827762,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxODI3NzYy","avatar_url":"https://avatars0.githubusercontent.com/u/51827762?v=4","gravatar_id":"","url":"https://api.github.com/users/coleslaw-org","html_url":"https://github.com/coleslaw-org","followers_url":"https://api.github.com/users/coleslaw-org/followers","following_url":"https://api.github.com/users/coleslaw-org/following{/other_user}","gists_url":"https://api.github.com/users/coleslaw-org/gists{/gist_id}","starred_url":"https://api.github.com/users/coleslaw-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleslaw-org/subscriptions","organizations_url":"https://api.github.com/users/coleslaw-org/orgs","repos_url":"https://api.github.com/users/coleslaw-org/repos","events_url":"https://api.github.com/users/coleslaw-org/events{/privacy}","received_events_url":"https://api.github.com/users/coleslaw-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/coleslaw-org/coleslaw","description":"Flexible Lisp Blogware","fork":false,"url":"https://api.github.com/repos/coleslaw-org/coleslaw","forks_url":"https://api.github.com/repos/coleslaw-org/coleslaw/forks","keys_url":"https://api.github.com/repos/coleslaw-org/coleslaw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coleslaw-org/coleslaw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coleslaw-org/coleslaw/teams","hooks_url":"https://api.github.com/repos/coleslaw-org/coleslaw/hooks","issue_events_url":"https://api.github.com/repos/coleslaw-org/coleslaw/issues/events{/number}","events_url":"https://api.github.com/repos/coleslaw-org/coleslaw/events","assignees_url":"https://api.github.com/repos/coleslaw-org/coleslaw/assignees{/user}","branches_url":"https://api.github.com/repos/coleslaw-org/coleslaw/branches{/branch}","tags_url":"https://api.github.com/repos/coleslaw-org/coleslaw/tags","blobs_url":"https://api.github.com/repos/coleslaw-org/coleslaw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coleslaw-org/coleslaw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coleslaw-org/coleslaw/git/refs{/sha}","trees_url":"https://api.github.com/repos/coleslaw-org/coleslaw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coleslaw-org/coleslaw/statuses/{sha}","languages_url":"https://api.github.com/repos/coleslaw-org/coleslaw/languages","stargazers_url":"https://api.github.com/repos/coleslaw-org/coleslaw/stargazers","contributors_url":"https://api.github.com/repos/coleslaw-org/coleslaw/contributors","subscribers_url":"https://api.github.com/repos/coleslaw-org/coleslaw/subscribers","subscription_url":"https://api.github.com/repos/coleslaw-org/coleslaw/subscription","commits_url":"https://api.github.com/repos/coleslaw-org/coleslaw/commits{/sha}","git_commits_url":"https://api.github.com/repos/coleslaw-org/coleslaw/git/commits{/sha}","comments_url":"https://api.github.com/repos/coleslaw-org/coleslaw/comments{/number}","issue_comment_url":"https://api.github.com/repos/coleslaw-org/coleslaw/issues/comments{/number}","contents_url":"https://api.github.com/repos/coleslaw-org/coleslaw/contents/{+path}","compare_url":"https://api.github.com/repos/coleslaw-org/coleslaw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coleslaw-org/coleslaw/merges","archive_url":"https://api.github.com/repos/coleslaw-org/coleslaw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coleslaw-org/coleslaw/downloads","issues_url":"https://api.github.com/repos/coleslaw-org/coleslaw/issues{/number}","pulls_url":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls{/number}","milestones_url":"https://api.github.com/repos/coleslaw-org/coleslaw/milestones{/number}","notifications_url":"https://api.github.com/repos/coleslaw-org/coleslaw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coleslaw-org/coleslaw/labels{/name}","releases_url":"https://api.github.com/repos/coleslaw-org/coleslaw/releases{/id}","deployments_url":"https://api.github.com/repos/coleslaw-org/coleslaw/deployments","created_at":"2011-02-19T21:27:15Z","updated_at":"2019-07-15T13:17:41Z","pushed_at":"2019-07-13T16:17:52Z","git_url":"git://github.com/coleslaw-org/coleslaw.git","ssh_url":"git@github.com:coleslaw-org/coleslaw.git","clone_url":"https://github.com/coleslaw-org/coleslaw.git","svn_url":"https://github.com/coleslaw-org/coleslaw","homepage":"","size":779,"stargazers_count":341,"watchers_count":341,"language":"Common Lisp","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":44,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":69,"open_issues":44,"watchers":341,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173"},"html":{"href":"https://github.com/coleslaw-org/coleslaw/pull/173"},"issue":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/issues/173"},"comments":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/statuses/8492120a51c13d713c8a9121f079de2220190ce5"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":1,"maintainer_can_modify":true,"commits":1,"additions":32,"deletions":30,"changed_files":2} + diff --git a/tests/ReplayData/PullRequest1169.testReviewApproveWithoutBody.txt b/tests/ReplayData/PullRequest1169.testReviewApproveWithoutBody.txt new file mode 100644 index 00000000..a7aa33d7 --- /dev/null +++ b/tests/ReplayData/PullRequest1169.testReviewApproveWithoutBody.txt @@ -0,0 +1,11 @@ +https +POST +api.github.com +None +/repos/coleslaw-org/coleslaw/pulls/173/reviews +{'Content-Type': 'application/json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +{"event": "APPROVE", "comments": []} +200 +[('Date', 'Mon, 15 Jul 2019 16:42:30 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4995'), ('X-RateLimit-Reset', '1563212378'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding'), ('ETag', 'W/"c3218e799d214a96e76516cd1b66719c"'), ('X-OAuth-Scopes', 'notifications, public_repo'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '9692:A1DA:7E28EE2:9C4D530:5D2CACF5')] +{"id":261942907,"node_id":"MDE3OlB1bGxSZXF1ZXN0UmV2aWV3MjYxOTQyOTA3","user":{"login":"Ferada","id":13713,"node_id":"MDQ6VXNlcjEzNzEz","avatar_url":"https://avatars1.githubusercontent.com/u/13713?v=4","gravatar_id":"","url":"https://api.github.com/users/Ferada","html_url":"https://github.com/Ferada","followers_url":"https://api.github.com/users/Ferada/followers","following_url":"https://api.github.com/users/Ferada/following{/other_user}","gists_url":"https://api.github.com/users/Ferada/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferada/subscriptions","organizations_url":"https://api.github.com/users/Ferada/orgs","repos_url":"https://api.github.com/users/Ferada/repos","events_url":"https://api.github.com/users/Ferada/events{/privacy}","received_events_url":"https://api.github.com/users/Ferada/received_events","type":"User","site_admin":false},"body":"","state":"APPROVED","html_url":"https://github.com/coleslaw-org/coleslaw/pull/173#pullrequestreview-261942907","pull_request_url":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173","author_association":"CONTRIBUTOR","_links":{"html":{"href":"https://github.com/coleslaw-org/coleslaw/pull/173#pullrequestreview-261942907"},"pull_request":{"href":"https://api.github.com/repos/coleslaw-org/coleslaw/pulls/173"}},"submitted_at":"2019-07-15T16:42:30Z","commit_id":"8492120a51c13d713c8a9121f079de2220190ce5"} +