{"action":"created","comment":{"url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/comments/224416474","pull_request_review_id":163774620,"id":224416474,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDQxNjQ3NA==","diff_hunk":"@@ -57,92 +58,131 @@ interface CreateProductDto {\n   livingSpace: number\n }\n \n+type CallApi = (\n+  url: string,\n+  options?: {\n+    mergeOptions?: RequestInit\n+    validateStatus?: (response: Response) => void\n+    token?: string\n+  },\n+) => Promise<Response>\n+\n+const callApi: CallApi = async (url, options = {}) => {\n+  const { mergeOptions, token, validateStatus = checkStatus } = options\n+  const headers: { [key: string]: string } = {\n+    Accept: 'application/json',\n+  }\n+  if (mergeOptions!.method === 'POST') {\n+    headers['Content-Type'] = 'application/json'","path":"src/api/index.ts","position":62,"original_position":26,"commit_id":"32e8e809e517ff5f8135e8770e9b05df51371946","original_commit_id":"c96ec13ec4d28948e588dac1979afad4e9e4fff7","user":{"login":"hedvigoscar","id":39644124,"node_id":"MDQ6VXNlcjM5NjQ0MTI0","avatar_url":"https://avatars3.githubusercontent.com/u/39644124?v=4","gravatar_id":"","url":"https://api.github.com/users/hedvigoscar","html_url":"https://github.com/hedvigoscar","followers_url":"https://api.github.com/users/hedvigoscar/followers","following_url":"https://api.github.com/users/hedvigoscar/following{/other_user}","gists_url":"https://api.github.com/users/hedvigoscar/gists{/gist_id}","starred_url":"https://api.github.com/users/hedvigoscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedvigoscar/subscriptions","organizations_url":"https://api.github.com/users/hedvigoscar/orgs","repos_url":"https://api.github.com/users/hedvigoscar/repos","events_url":"https://api.github.com/users/hedvigoscar/events{/privacy}","received_events_url":"https://api.github.com/users/hedvigoscar/received_events","type":"User","site_admin":false},"body":"I agree actually, this is just the least bad way I've found to represent this sort of thing 😕 I'm open for suggestions if you have alternative ways to represent it!","created_at":"2018-10-11T11:48:16Z","updated_at":"2018-10-11T11:48:16Z","html_url":"https://github.com/HedvigInsurance/giraffe/pull/10#discussion_r224416474","pull_request_url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/comments/224416474"},"html":{"href":"https://github.com/HedvigInsurance/giraffe/pull/10#discussion_r224416474"},"pull_request":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10"}},"in_reply_to_id":224384382},"pull_request":{"url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10","id":221795889,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNzk1ODg5","html_url":"https://github.com/HedvigInsurance/giraffe/pull/10","diff_url":"https://github.com/HedvigInsurance/giraffe/pull/10.diff","patch_url":"https://github.com/HedvigInsurance/giraffe/pull/10.patch","issue_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/10","number":10,"state":"open","locked":false,"title":"Subscribe to Offer Sign Status","user":{"login":"hedvigoscar","id":39644124,"node_id":"MDQ6VXNlcjM5NjQ0MTI0","avatar_url":"https://avatars3.githubusercontent.com/u/39644124?v=4","gravatar_id":"","url":"https://api.github.com/users/hedvigoscar","html_url":"https://github.com/hedvigoscar","followers_url":"https://api.github.com/users/hedvigoscar/followers","following_url":"https://api.github.com/users/hedvigoscar/following{/other_user}","gists_url":"https://api.github.com/users/hedvigoscar/gists{/gist_id}","starred_url":"https://api.github.com/users/hedvigoscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hedvigoscar/subscriptions","organizations_url":"https://api.github.com/users/hedvigoscar/orgs","repos_url":"https://api.github.com/users/hedvigoscar/repos","events_url":"https://api.github.com/users/hedvigoscar/events{/privacy}","received_events_url":"https://api.github.com/users/hedvigoscar/received_events","type":"User","site_admin":false},"body":"I may have messed up the branch name a bit. But that's ok 🙂\r\n\r\nThis branch is based on `feature/sign-offer-mutation` (#9) - review that before this 🙏 ","created_at":"2018-10-10T13:46:12Z","updated_at":"2018-10-11T11:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e1b4b9963df0a71c832f82de7120518e2d6e0c8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10/commits","review_comments_url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10/comments","review_comment_url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/10/comments","statuses_url":"https://api.github.com/repos/HedvigInsurance/giraffe/statuses/32e8e809e517ff5f8135e8770e9b05df51371946","head":{"label":"HedvigInsurance:feature/subscribe-to-offer-status","ref":"feature/subscribe-to-offer-status","sha":"32e8e809e517ff5f8135e8770e9b05df51371946","user":{"login":"HedvigInsurance","id":31246138,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjQ2MTM4","avatar_url":"https://avatars1.githubusercontent.com/u/31246138?v=4","gravatar_id":"","url":"https://api.github.com/users/HedvigInsurance","html_url":"https://github.com/HedvigInsurance","followers_url":"https://api.github.com/users/HedvigInsurance/followers","following_url":"https://api.github.com/users/HedvigInsurance/following{/other_user}","gists_url":"https://api.github.com/users/HedvigInsurance/gists{/gist_id}","starred_url":"https://api.github.com/users/HedvigInsurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HedvigInsurance/subscriptions","organizations_url":"https://api.github.com/users/HedvigInsurance/orgs","repos_url":"https://api.github.com/users/HedvigInsurance/repos","events_url":"https://api.github.com/users/HedvigInsurance/events{/privacy}","received_events_url":"https://api.github.com/users/HedvigInsurance/received_events","type":"Organization","site_admin":false},"repo":{"id":151245048,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEyNDUwNDg=","name":"giraffe","full_name":"HedvigInsurance/giraffe","private":false,"owner":{"login":"HedvigInsurance","id":31246138,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjQ2MTM4","avatar_url":"https://avatars1.githubusercontent.com/u/31246138?v=4","gravatar_id":"","url":"https://api.github.com/users/HedvigInsurance","html_url":"https://github.com/HedvigInsurance","followers_url":"https://api.github.com/users/HedvigInsurance/followers","following_url":"https://api.github.com/users/HedvigInsurance/following{/other_user}","gists_url":"https://api.github.com/users/HedvigInsurance/gists{/gist_id}","starred_url":"https://api.github.com/users/HedvigInsurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HedvigInsurance/subscriptions","organizations_url":"https://api.github.com/users/HedvigInsurance/orgs","repos_url":"https://api.github.com/users/HedvigInsurance/repos","events_url":"https://api.github.com/users/HedvigInsurance/events{/privacy}","received_events_url":"https://api.github.com/users/HedvigInsurance/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HedvigInsurance/giraffe","description":"The Great GraphQL Giraffe! 🦒","fork":false,"url":"https://api.github.com/repos/HedvigInsurance/giraffe","forks_url":"https://api.github.com/repos/HedvigInsurance/giraffe/forks","keys_url":"https://api.github.com/repos/HedvigInsurance/giraffe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HedvigInsurance/giraffe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HedvigInsurance/giraffe/teams","hooks_url":"https://api.github.com/repos/HedvigInsurance/giraffe/hooks","issue_events_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/events{/number}","events_url":"https://api.github.com/repos/HedvigInsurance/giraffe/events","assignees_url":"https://api.github.com/repos/HedvigInsurance/giraffe/assignees{/user}","branches_url":"https://api.github.com/repos/HedvigInsurance/giraffe/branches{/branch}","tags_url":"https://api.github.com/repos/HedvigInsurance/giraffe/tags","blobs_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/refs{/sha}","trees_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HedvigInsurance/giraffe/statuses/{sha}","languages_url":"https://api.github.com/repos/HedvigInsurance/giraffe/languages","stargazers_url":"https://api.github.com/repos/HedvigInsurance/giraffe/stargazers","contributors_url":"https://api.github.com/repos/HedvigInsurance/giraffe/contributors","subscribers_url":"https://api.github.com/repos/HedvigInsurance/giraffe/subscribers","subscription_url":"https://api.github.com/repos/HedvigInsurance/giraffe/subscription","commits_url":"https://api.github.com/repos/HedvigInsurance/giraffe/commits{/sha}","git_commits_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/commits{/sha}","comments_url":"https://api.github.com/repos/HedvigInsurance/giraffe/comments{/number}","issue_comment_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/comments{/number}","contents_url":"https://api.github.com/repos/HedvigInsurance/giraffe/contents/{+path}","compare_url":"https://api.github.com/repos/HedvigInsurance/giraffe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HedvigInsurance/giraffe/merges","archive_url":"https://api.github.com/repos/HedvigInsurance/giraffe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HedvigInsurance/giraffe/downloads","issues_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues{/number}","pulls_url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls{/number}","milestones_url":"https://api.github.com/repos/HedvigInsurance/giraffe/milestones{/number}","notifications_url":"https://api.github.com/repos/HedvigInsurance/giraffe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HedvigInsurance/giraffe/labels{/name}","releases_url":"https://api.github.com/repos/HedvigInsurance/giraffe/releases{/id}","deployments_url":"https://api.github.com/repos/HedvigInsurance/giraffe/deployments","created_at":"2018-10-02T11:41:47Z","updated_at":"2018-10-10T11:30:27Z","pushed_at":"2018-10-11T11:44:15Z","git_url":"git://github.com/HedvigInsurance/giraffe.git","ssh_url":"git@github.com:HedvigInsurance/giraffe.git","clone_url":"https://github.com/HedvigInsurance/giraffe.git","svn_url":"https://github.com/HedvigInsurance/giraffe","homepage":null,"size":217,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"HedvigInsurance:master","ref":"master","sha":"9d97350ae3fa2c19ad5d59133d984bfb78116c4e","user":{"login":"HedvigInsurance","id":31246138,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjQ2MTM4","avatar_url":"https://avatars1.githubusercontent.com/u/31246138?v=4","gravatar_id":"","url":"https://api.github.com/users/HedvigInsurance","html_url":"https://github.com/HedvigInsurance","followers_url":"https://api.github.com/users/HedvigInsurance/followers","following_url":"https://api.github.com/users/HedvigInsurance/following{/other_user}","gists_url":"https://api.github.com/users/HedvigInsurance/gists{/gist_id}","starred_url":"https://api.github.com/users/HedvigInsurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HedvigInsurance/subscriptions","organizations_url":"https://api.github.com/users/HedvigInsurance/orgs","repos_url":"https://api.github.com/users/HedvigInsurance/repos","events_url":"https://api.github.com/users/HedvigInsurance/events{/privacy}","received_events_url":"https://api.github.com/users/HedvigInsurance/received_events","type":"Organization","site_admin":false},"repo":{"id":151245048,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEyNDUwNDg=","name":"giraffe","full_name":"HedvigInsurance/giraffe","private":false,"owner":{"login":"HedvigInsurance","id":31246138,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjQ2MTM4","avatar_url":"https://avatars1.githubusercontent.com/u/31246138?v=4","gravatar_id":"","url":"https://api.github.com/users/HedvigInsurance","html_url":"https://github.com/HedvigInsurance","followers_url":"https://api.github.com/users/HedvigInsurance/followers","following_url":"https://api.github.com/users/HedvigInsurance/following{/other_user}","gists_url":"https://api.github.com/users/HedvigInsurance/gists{/gist_id}","starred_url":"https://api.github.com/users/HedvigInsurance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HedvigInsurance/subscriptions","organizations_url":"https://api.github.com/users/HedvigInsurance/orgs","repos_url":"https://api.github.com/users/HedvigInsurance/repos","events_url":"https://api.github.com/users/HedvigInsurance/events{/privacy}","received_events_url":"https://api.github.com/users/HedvigInsurance/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HedvigInsurance/giraffe","description":"The Great GraphQL Giraffe! 🦒","fork":false,"url":"https://api.github.com/repos/HedvigInsurance/giraffe","forks_url":"https://api.github.com/repos/HedvigInsurance/giraffe/forks","keys_url":"https://api.github.com/repos/HedvigInsurance/giraffe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HedvigInsurance/giraffe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HedvigInsurance/giraffe/teams","hooks_url":"https://api.github.com/repos/HedvigInsurance/giraffe/hooks","issue_events_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/events{/number}","events_url":"https://api.github.com/repos/HedvigInsurance/giraffe/events","assignees_url":"https://api.github.com/repos/HedvigInsurance/giraffe/assignees{/user}","branches_url":"https://api.github.com/repos/HedvigInsurance/giraffe/branches{/branch}","tags_url":"https://api.github.com/repos/HedvigInsurance/giraffe/tags","blobs_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/refs{/sha}","trees_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HedvigInsurance/giraffe/statuses/{sha}","languages_url":"https://api.github.com/repos/HedvigInsurance/giraffe/languages","stargazers_url":"https://api.github.com/repos/HedvigInsurance/giraffe/stargazers","contributors_url":"https://api.github.com/repos/HedvigInsurance/giraffe/contributors","subscribers_url":"https://api.github.com/repos/HedvigInsurance/giraffe/subscribers","subscription_url":"https://api.github.com/repos/HedvigInsurance/giraffe/subscription","commits_url":"https://api.github.com/repos/HedvigInsurance/giraffe/commits{/sha}","git_commits_url":"https://api.github.com/repos/HedvigInsurance/giraffe/git/commits{/sha}","comments_url":"https://api.github.com/repos/HedvigInsurance/giraffe/comments{/number}","issue_comment_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/comments{/number}","contents_url":"https://api.github.com/repos/HedvigInsurance/giraffe/contents/{+path}","compare_url":"https://api.github.com/repos/HedvigInsurance/giraffe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HedvigInsurance/giraffe/merges","archive_url":"https://api.github.com/repos/HedvigInsurance/giraffe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HedvigInsurance/giraffe/downloads","issues_url":"https://api.github.com/repos/HedvigInsurance/giraffe/issues{/number}","pulls_url":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls{/number}","milestones_url":"https://api.github.com/repos/HedvigInsurance/giraffe/milestones{/number}","notifications_url":"https://api.github.com/repos/HedvigInsurance/giraffe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HedvigInsurance/giraffe/labels{/name}","releases_url":"https://api.github.com/repos/HedvigInsurance/giraffe/releases{/id}","deployments_url":"https://api.github.com/repos/HedvigInsurance/giraffe/deployments","created_at":"2018-10-02T11:41:47Z","updated_at":"2018-10-10T11:30:27Z","pushed_at":"2018-10-11T11:44:15Z","git_url":"git://github.com/HedvigInsurance/giraffe.git","ssh_url":"git@github.com:HedvigInsurance/giraffe.git","clone_url":"https://github.com/HedvigInsurance/giraffe.git","svn_url":"https://github.com/HedvigInsurance/giraffe","homepage":null,"size":217,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10"},"html":{"href":"https://github.com/HedvigInsurance/giraffe/pull/10"},"issue":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/10"},"comments":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/HedvigInsurance/giraffe/statuses/32e8e809e517ff5f8135e8770e9b05df51371946"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hedvigoscar"}}