payload: {"action":"created","comment":{"url":"https://api.github.com/repos/alex-cory/use-http/pulls/comments/303599764","pull_request_review_id":262029392,"id":303599764,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMzU5OTc2NA==","diff_hunk":"@@ -27,6 +27,7 @@\n     \"react\": \"^16.8.6\",\n     \"react-dom\": \"^16.8.6\",\n     \"react-hooks-testing-library\": \"^0.6.0\",\n+    \"react-test-renderer\": \"^16.8.6\",","path":"package.json","position":4,"original_position":4,"commit_id":"aeb23851f12bf6575c99b65e16fb261e9d45a12e","original_commit_id":"aeb23851f12bf6575c99b65e16fb261e9d45a12e","user":{"login":"alex-cory","id":5455859,"node_id":"MDQ6VXNlcjU0NTU4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/5455859?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-cory","html_url":"https://github.com/alex-cory","followers_url":"https://api.github.com/users/alex-cory/followers","following_url":"https://api.github.com/users/alex-cory/following{/other_user}","gists_url":"https://api.github.com/users/alex-cory/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-cory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-cory/subscriptions","organizations_url":"https://api.github.com/users/alex-cory/orgs","repos_url":"https://api.github.com/users/alex-cory/repos","events_url":"https://api.github.com/users/alex-cory/events{/privacy}","received_events_url":"https://api.github.com/users/alex-cory/received_events","type":"User","site_admin":false},"body":"are we using this somewhere?","created_at":"2019-07-15T19:33:30Z","updated_at":"2019-07-15T19:33:30Z","html_url":"https://github.com/alex-cory/use-http/pull/41#discussion_r303599764","pull_request_url":"https://api.github.com/repos/alex-cory/use-http/pulls/41","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/alex-cory/use-http/pulls/comments/303599764"},"html":{"href":"https://github.com/alex-cory/use-http/pull/41#discussion_r303599764"},"pull_request":{"href":"https://api.github.com/repos/alex-cory/use-http/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/alex-cory/use-http/pulls/41","id":297693335,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk3NjkzMzM1","html_url":"https://github.com/alex-cory/use-http/pull/41","diff_url":"https://github.com/alex-cory/use-http/pull/41.diff","patch_url":"https://github.com/alex-cory/use-http/pull/41.patch","issue_url":"https://api.github.com/repos/alex-cory/use-http/issues/41","number":41,"state":"open","locked":false,"title":"isolate and simplify the creation of the options object","user":{"login":"dagda1","id":118328,"node_id":"MDQ6VXNlcjExODMyOA==","avatar_url":"https://avatars0.githubusercontent.com/u/118328?v=4","gravatar_id":"","url":"https://api.github.com/users/dagda1","html_url":"https://github.com/dagda1","followers_url":"https://api.github.com/users/dagda1/followers","following_url":"https://api.github.com/users/dagda1/following{/other_user}","gists_url":"https://api.github.com/users/dagda1/gists{/gist_id}","starred_url":"https://api.github.com/users/dagda1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagda1/subscriptions","organizations_url":"https://api.github.com/users/dagda1/orgs","repos_url":"https://api.github.com/users/dagda1/repos","events_url":"https://api.github.com/users/dagda1/events{/privacy}","received_events_url":"https://api.github.com/users/dagda1/received_events","type":"User","site_admin":false},"body":"I've created a `makeConfig` function to try and simplify the creation of the various options.\r\n\r\nI've isolated this to make testing easier.\r\n\r\nI've added tests and I think it is more readable but please feel free to disagree.\r\n\r\nThis is your baby, you can outright refuse if  you want.","created_at":"2019-07-15T16:18:30Z","updated_at":"2019-07-15T19:33:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55a0987f4b2a64ac21c0dceb49730ac204044b74","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alex-cory/use-http/pulls/41/commits","review_comments_url":"https://api.github.com/repos/alex-cory/use-http/pulls/41/comments","review_comment_url":"https://api.github.com/repos/alex-cory/use-http/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alex-cory/use-http/issues/41/comments","statuses_url":"https://api.github.com/repos/alex-cory/use-http/statuses/aeb23851f12bf6575c99b65e16fb261e9d45a12e","head":{"label":"dagda1:pc/suggested-improvements","ref":"pc/suggested-improvements","sha":"aeb23851f12bf6575c99b65e16fb261e9d45a12e","user":{"login":"dagda1","id":118328,"node_id":"MDQ6VXNlcjExODMyOA==","avatar_url":"https://avatars0.githubusercontent.com/u/118328?v=4","gravatar_id":"","url":"https://api.github.com/users/dagda1","html_url":"https://github.com/dagda1","followers_url":"https://api.github.com/users/dagda1/followers","following_url":"https://api.github.com/users/dagda1/following{/other_user}","gists_url":"https://api.github.com/users/dagda1/gists{/gist_id}","starred_url":"https://api.github.com/users/dagda1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagda1/subscriptions","organizations_url":"https://api.github.com/users/dagda1/orgs","repos_url":"https://api.github.com/users/dagda1/repos","events_url":"https://api.github.com/users/dagda1/events{/privacy}","received_events_url":"https://api.github.com/users/dagda1/received_events","type":"User","site_admin":false},"repo":{"id":193277449,"node_id":"MDEwOlJlcG9zaXRvcnkxOTMyNzc0NDk=","name":"use-http","full_name":"dagda1/use-http","private":false,"owner":{"login":"dagda1","id":118328,"node_id":"MDQ6VXNlcjExODMyOA==","avatar_url":"https://avatars0.githubusercontent.com/u/118328?v=4","gravatar_id":"","url":"https://api.github.com/users/dagda1","html_url":"https://github.com/dagda1","followers_url":"https://api.github.com/users/dagda1/followers","following_url":"https://api.github.com/users/dagda1/following{/other_user}","gists_url":"https://api.github.com/users/dagda1/gists{/gist_id}","starred_url":"https://api.github.com/users/dagda1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagda1/subscriptions","organizations_url":"https://api.github.com/users/dagda1/orgs","repos_url":"https://api.github.com/users/dagda1/repos","events_url":"https://api.github.com/users/dagda1/events{/privacy}","received_events_url":"https://api.github.com/users/dagda1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dagda1/use-http","description":"🐶 React hook for making isomorphic http requests","fork":true,"url":"https://api.github.com/repos/dagda1/use-http","forks_url":"https://api.github.com/repos/dagda1/use-http/forks","keys_url":"https://api.github.com/repos/dagda1/use-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dagda1/use-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dagda1/use-http/teams","hooks_url":"https://api.github.com/repos/dagda1/use-http/hooks","issue_events_url":"https://api.github.com/repos/dagda1/use-http/issues/events{/number}","events_url":"https://api.github.com/repos/dagda1/use-http/events","assignees_url":"https://api.github.com/repos/dagda1/use-http/assignees{/user}","branches_url":"https://api.github.com/repos/dagda1/use-http/branches{/branch}","tags_url":"https://api.github.com/repos/dagda1/use-http/tags","blobs_url":"https://api.github.com/repos/dagda1/use-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dagda1/use-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dagda1/use-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/dagda1/use-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dagda1/use-http/statuses/{sha}","languages_url":"https://api.github.com/repos/dagda1/use-http/languages","stargazers_url":"https://api.github.com/repos/dagda1/use-http/stargazers","contributors_url":"https://api.github.com/repos/dagda1/use-http/contributors","subscribers_url":"https://api.github.com/repos/dagda1/use-http/subscribers","subscription_url":"https://api.github.com/repos/dagda1/use-http/subscription","commits_url":"https://api.github.com/repos/dagda1/use-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/dagda1/use-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/dagda1/use-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/dagda1/use-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/dagda1/use-http/contents/{+path}","compare_url":"https://api.github.com/repos/dagda1/use-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dagda1/use-http/merges","archive_url":"https://api.github.com/repos/dagda1/use-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dagda1/use-http/downloads","issues_url":"https://api.github.com/repos/dagda1/use-http/issues{/number}","pulls_url":"https://api.github.com/repos/dagda1/use-http/pulls{/number}","milestones_url":"https://api.github.com/repos/dagda1/use-http/milestones{/number}","notifications_url":"https://api.github.com/repos/dagda1/use-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dagda1/use-http/labels{/name}","releases_url":"https://api.github.com/repos/dagda1/use-http/releases{/id}","deployments_url":"https://api.github.com/repos/dagda1/use-http/deployments","created_at":"2019-06-22T20:38:09Z","updated_at":"2019-07-14T13:37:21Z","pushed_at":"2019-07-15T18:06:34Z","git_url":"git://github.com/dagda1/use-http.git","ssh_url":"git@github.com:dagda1/use-http.git","clone_url":"https://github.com/dagda1/use-http.git","svn_url":"https://github.com/dagda1/use-http","homepage":"http://bit.ly/use-http","size":5851,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alex-cory:master","ref":"master","sha":"c81e5f5d448d066ce1146dd60b2ab64247ca42d5","user":{"login":"alex-cory","id":5455859,"node_id":"MDQ6VXNlcjU0NTU4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/5455859?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-cory","html_url":"https://github.com/alex-cory","followers_url":"https://api.github.com/users/alex-cory/followers","following_url":"https://api.github.com/users/alex-cory/following{/other_user}","gists_url":"https://api.github.com/users/alex-cory/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-cory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-cory/subscriptions","organizations_url":"https://api.github.com/users/alex-cory/orgs","repos_url":"https://api.github.com/users/alex-cory/repos","events_url":"https://api.github.com/users/alex-cory/events{/privacy}","received_events_url":"https://api.github.com/users/alex-cory/received_events","type":"User","site_admin":false},"repo":{"id":180707102,"node_id":"MDEwOlJlcG9zaXRvcnkxODA3MDcxMDI=","name":"use-http","full_name":"alex-cory/use-http","private":false,"owner":{"login":"alex-cory","id":5455859,"node_id":"MDQ6VXNlcjU0NTU4NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/5455859?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-cory","html_url":"https://github.com/alex-cory","followers_url":"https://api.github.com/users/alex-cory/followers","following_url":"https://api.github.com/users/alex-cory/following{/other_user}","gists_url":"https://api.github.com/users/alex-cory/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-cory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-cory/subscriptions","organizations_url":"https://api.github.com/users/alex-cory/orgs","repos_url":"https://api.github.com/users/alex-cory/repos","events_url":"https://api.github.com/users/alex-cory/events{/privacy}","received_events_url":"https://api.github.com/users/alex-cory/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alex-cory/use-http","description":"🐶 React hook for making isomorphic http requests","fork":false,"url":"https://api.github.com/repos/alex-cory/use-http","forks_url":"https://api.github.com/repos/alex-cory/use-http/forks","keys_url":"https://api.github.com/repos/alex-cory/use-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex-cory/use-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex-cory/use-http/teams","hooks_url":"https://api.github.com/repos/alex-cory/use-http/hooks","issue_events_url":"https://api.github.com/repos/alex-cory/use-http/issues/events{/number}","events_url":"https://api.github.com/repos/alex-cory/use-http/events","assignees_url":"https://api.github.com/repos/alex-cory/use-http/assignees{/user}","branches_url":"https://api.github.com/repos/alex-cory/use-http/branches{/branch}","tags_url":"https://api.github.com/repos/alex-cory/use-http/tags","blobs_url":"https://api.github.com/repos/alex-cory/use-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex-cory/use-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex-cory/use-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex-cory/use-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex-cory/use-http/statuses/{sha}","languages_url":"https://api.github.com/repos/alex-cory/use-http/languages","stargazers_url":"https://api.github.com/repos/alex-cory/use-http/stargazers","contributors_url":"https://api.github.com/repos/alex-cory/use-http/contributors","subscribers_url":"https://api.github.com/repos/alex-cory/use-http/subscribers","subscription_url":"https://api.github.com/repos/alex-cory/use-http/subscription","commits_url":"https://api.github.com/repos/alex-cory/use-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex-cory/use-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex-cory/use-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex-cory/use-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/alex-cory/use-http/contents/{+path}","compare_url":"https://api.github.com/repos/alex-cory/use-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex-cory/use-http/merges","archive_url":"https://api.github.com/repos/alex-cory/use-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex-cory/use-http/downloads","issues_url":"https://api.github.com/repos/alex-cory/use-http/issues{/number}","pulls_url":"https://api.github.com/repos/alex-cory/use-http/pulls{/number}","milestones_url":"https://api.github.com/repos/alex-cory/use-http/milestones{/number}","notifications_url":"https://api.github.com/repos/alex-cory/use-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex-cory/use-http/labels{/name}","releases_url":"https://api.github.com/repos/alex-cory/use-http/releases{/id}","deployments_url":"https://api.github.com/repos/alex-cory/use-http/deployments","created_at":"2019-04-11T03:26:44Z","updated_at":"2019-07-15T10:58:10Z","pushed_at":"2019-07-15T18:06:36Z","git_url":"git://github.com/alex-cory/use-http.git","ssh_url":"git@github.com:alex-cory/use-http.git","clone_url":"https://github.com/alex-cory/use-http.git","svn_url":"https://github.com/alex-cory/use-http","homepage":"http://use-http.com","size":8961,"stargazers_count":873,"watchers_count":873,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":8,"watchers":873,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alex-cory/use-http/pulls/41"},"html":{"href":"https://github.com/alex-cory/use-http/pull/41"},"issue":{"href":"https://api.github.com/repos/alex-cory/use-http/issues/41"},"comments":{"href":"https://api.github.com/repos/alex-cory/use-http/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/alex-cory/use-http/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/alex-cory/use-http/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alex-cory/use-http/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/alex-cory/use-http/statuses/aeb23851f12bf6575c99b65e16fb261e9d45a12e"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"alex-cory"}}