{"action":"created","comment":{"url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/comments/180969237","pull_request_review_id":111483524,"id":180969237,"diff_hunk":"@@ -0,0 +1,35 @@\n+const parseRawLinks = (rawLinks) => {\n+  if (typeof rawLinks !== \"string\") {\n+    return [];\n+  }\n+\n+  let links = [];\n+  const splitLinks = rawLinks.split(\",\");\n+\n+  for (var i = 0; i < splitLinks.length; i++) {\n+    let link = {};\n+    const splitParts = splitLinks[i].split(\";\");\n+\n+    link.href = splitParts[0].replace(/<(.*)>/, \"$1\").trim();\n+    link.rel = splitParts[1].replace(/rel=\"(.*)\"/, \"$1\").trim();\n+    link.title = splitParts[2].replace(/title=\"(.*)\"/, \"$1\").trim();\n+\n+    links.push(link);\n+  }\n+\n+  return links;\n+};\n+\n+const resolveUrls = (links, baseUrl) => {\n+  const linksCopy = Object.assign([], links);\n+\n+  for (var i = 0; i < linksCopy.length; i++) {","path":"src/link-utils.js","position":26,"original_position":26,"commit_id":"67ee27eb131f032bcbb6e0549c6c25fd06d663ef","original_commit_id":"67ee27eb131f032bcbb6e0549c6c25fd06d663ef","user":{"login":"tbaik","id":2181740,"avatar_url":"https://avatars2.githubusercontent.com/u/2181740?v=4","gravatar_id":"","url":"https://api.github.com/users/tbaik","html_url":"https://github.com/tbaik","followers_url":"https://api.github.com/users/tbaik/followers","following_url":"https://api.github.com/users/tbaik/following{/other_user}","gists_url":"https://api.github.com/users/tbaik/gists{/gist_id}","starred_url":"https://api.github.com/users/tbaik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbaik/subscriptions","organizations_url":"https://api.github.com/users/tbaik/orgs","repos_url":"https://api.github.com/users/tbaik/repos","events_url":"https://api.github.com/users/tbaik/events{/privacy}","received_events_url":"https://api.github.com/users/tbaik/received_events","type":"User","site_admin":false},"body":"consider trying to use for...in loops. I think it's cleaner than the traditional for loops minus a few cases where the arrays aren't so straight forward","created_at":"2018-04-12T05:37:00Z","updated_at":"2018-04-12T05:50:35Z","html_url":"https://github.com/jdesrosiers/api-browser-web/pull/19#discussion_r180969237","pull_request_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/comments/180969237"},"html":{"href":"https://github.com/jdesrosiers/api-browser-web/pull/19#discussion_r180969237"},"pull_request":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19","id":181061095,"html_url":"https://github.com/jdesrosiers/api-browser-web/pull/19","diff_url":"https://github.com/jdesrosiers/api-browser-web/pull/19.diff","patch_url":"https://github.com/jdesrosiers/api-browser-web/pull/19.patch","issue_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues/19","number":19,"state":"open","locked":false,"title":"link-header","user":{"login":"bean00","id":13635808,"avatar_url":"https://avatars2.githubusercontent.com/u/13635808?v=4","gravatar_id":"","url":"https://api.github.com/users/bean00","html_url":"https://github.com/bean00","followers_url":"https://api.github.com/users/bean00/followers","following_url":"https://api.github.com/users/bean00/following{/other_user}","gists_url":"https://api.github.com/users/bean00/gists{/gist_id}","starred_url":"https://api.github.com/users/bean00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean00/subscriptions","organizations_url":"https://api.github.com/users/bean00/orgs","repos_url":"https://api.github.com/users/bean00/repos","events_url":"https://api.github.com/users/bean00/events{/privacy}","received_events_url":"https://api.github.com/users/bean00/received_events","type":"User","site_admin":false},"body":"Ready for review.","created_at":"2018-04-12T00:21:18Z","updated_at":"2018-04-12T05:50:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03a85559439ab3b8ad6c6573fc0e4b8bc5edd743","assignee":{"login":"bean00","id":13635808,"avatar_url":"https://avatars2.githubusercontent.com/u/13635808?v=4","gravatar_id":"","url":"https://api.github.com/users/bean00","html_url":"https://github.com/bean00","followers_url":"https://api.github.com/users/bean00/followers","following_url":"https://api.github.com/users/bean00/following{/other_user}","gists_url":"https://api.github.com/users/bean00/gists{/gist_id}","starred_url":"https://api.github.com/users/bean00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean00/subscriptions","organizations_url":"https://api.github.com/users/bean00/orgs","repos_url":"https://api.github.com/users/bean00/repos","events_url":"https://api.github.com/users/bean00/events{/privacy}","received_events_url":"https://api.github.com/users/bean00/received_events","type":"User","site_admin":false},"assignees":[{"login":"bean00","id":13635808,"avatar_url":"https://avatars2.githubusercontent.com/u/13635808?v=4","gravatar_id":"","url":"https://api.github.com/users/bean00","html_url":"https://github.com/bean00","followers_url":"https://api.github.com/users/bean00/followers","following_url":"https://api.github.com/users/bean00/following{/other_user}","gists_url":"https://api.github.com/users/bean00/gists{/gist_id}","starred_url":"https://api.github.com/users/bean00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean00/subscriptions","organizations_url":"https://api.github.com/users/bean00/orgs","repos_url":"https://api.github.com/users/bean00/repos","events_url":"https://api.github.com/users/bean00/events{/privacy}","received_events_url":"https://api.github.com/users/bean00/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19/commits","review_comments_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19/comments","review_comment_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues/19/comments","statuses_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/statuses/67ee27eb131f032bcbb6e0549c6c25fd06d663ef","head":{"label":"bean00:feat/link-header","ref":"feat/link-header","sha":"67ee27eb131f032bcbb6e0549c6c25fd06d663ef","user":{"login":"bean00","id":13635808,"avatar_url":"https://avatars2.githubusercontent.com/u/13635808?v=4","gravatar_id":"","url":"https://api.github.com/users/bean00","html_url":"https://github.com/bean00","followers_url":"https://api.github.com/users/bean00/followers","following_url":"https://api.github.com/users/bean00/following{/other_user}","gists_url":"https://api.github.com/users/bean00/gists{/gist_id}","starred_url":"https://api.github.com/users/bean00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean00/subscriptions","organizations_url":"https://api.github.com/users/bean00/orgs","repos_url":"https://api.github.com/users/bean00/repos","events_url":"https://api.github.com/users/bean00/events{/privacy}","received_events_url":"https://api.github.com/users/bean00/received_events","type":"User","site_admin":false},"repo":{"id":125886108,"name":"api-browser-web","full_name":"bean00/api-browser-web","owner":{"login":"bean00","id":13635808,"avatar_url":"https://avatars2.githubusercontent.com/u/13635808?v=4","gravatar_id":"","url":"https://api.github.com/users/bean00","html_url":"https://github.com/bean00","followers_url":"https://api.github.com/users/bean00/followers","following_url":"https://api.github.com/users/bean00/following{/other_user}","gists_url":"https://api.github.com/users/bean00/gists{/gist_id}","starred_url":"https://api.github.com/users/bean00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean00/subscriptions","organizations_url":"https://api.github.com/users/bean00/orgs","repos_url":"https://api.github.com/users/bean00/repos","events_url":"https://api.github.com/users/bean00/events{/privacy}","received_events_url":"https://api.github.com/users/bean00/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bean00/api-browser-web","description":"A web interface for the generic hypermedia API browser","fork":true,"url":"https://api.github.com/repos/bean00/api-browser-web","forks_url":"https://api.github.com/repos/bean00/api-browser-web/forks","keys_url":"https://api.github.com/repos/bean00/api-browser-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bean00/api-browser-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bean00/api-browser-web/teams","hooks_url":"https://api.github.com/repos/bean00/api-browser-web/hooks","issue_events_url":"https://api.github.com/repos/bean00/api-browser-web/issues/events{/number}","events_url":"https://api.github.com/repos/bean00/api-browser-web/events","assignees_url":"https://api.github.com/repos/bean00/api-browser-web/assignees{/user}","branches_url":"https://api.github.com/repos/bean00/api-browser-web/branches{/branch}","tags_url":"https://api.github.com/repos/bean00/api-browser-web/tags","blobs_url":"https://api.github.com/repos/bean00/api-browser-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bean00/api-browser-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bean00/api-browser-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/bean00/api-browser-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bean00/api-browser-web/statuses/{sha}","languages_url":"https://api.github.com/repos/bean00/api-browser-web/languages","stargazers_url":"https://api.github.com/repos/bean00/api-browser-web/stargazers","contributors_url":"https://api.github.com/repos/bean00/api-browser-web/contributors","subscribers_url":"https://api.github.com/repos/bean00/api-browser-web/subscribers","subscription_url":"https://api.github.com/repos/bean00/api-browser-web/subscription","commits_url":"https://api.github.com/repos/bean00/api-browser-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/bean00/api-browser-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/bean00/api-browser-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/bean00/api-browser-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/bean00/api-browser-web/contents/{+path}","compare_url":"https://api.github.com/repos/bean00/api-browser-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bean00/api-browser-web/merges","archive_url":"https://api.github.com/repos/bean00/api-browser-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bean00/api-browser-web/downloads","issues_url":"https://api.github.com/repos/bean00/api-browser-web/issues{/number}","pulls_url":"https://api.github.com/repos/bean00/api-browser-web/pulls{/number}","milestones_url":"https://api.github.com/repos/bean00/api-browser-web/milestones{/number}","notifications_url":"https://api.github.com/repos/bean00/api-browser-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bean00/api-browser-web/labels{/name}","releases_url":"https://api.github.com/repos/bean00/api-browser-web/releases{/id}","deployments_url":"https://api.github.com/repos/bean00/api-browser-web/deployments","created_at":"2018-03-19T16:13:44Z","updated_at":"2018-04-10T23:18:32Z","pushed_at":"2018-04-12T04:42:04Z","git_url":"git://github.com/bean00/api-browser-web.git","ssh_url":"git@github.com:bean00/api-browser-web.git","clone_url":"https://github.com/bean00/api-browser-web.git","svn_url":"https://github.com/bean00/api-browser-web","homepage":"https://jdesrosiers.github.io/api-browser-web/","size":622,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jdesrosiers:master","ref":"master","sha":"f9c6fbc7c38a6deb852a998c31203f2d2bd06880","user":{"login":"jdesrosiers","id":716571,"avatar_url":"https://avatars1.githubusercontent.com/u/716571?v=4","gravatar_id":"","url":"https://api.github.com/users/jdesrosiers","html_url":"https://github.com/jdesrosiers","followers_url":"https://api.github.com/users/jdesrosiers/followers","following_url":"https://api.github.com/users/jdesrosiers/following{/other_user}","gists_url":"https://api.github.com/users/jdesrosiers/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesrosiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesrosiers/subscriptions","organizations_url":"https://api.github.com/users/jdesrosiers/orgs","repos_url":"https://api.github.com/users/jdesrosiers/repos","events_url":"https://api.github.com/users/jdesrosiers/events{/privacy}","received_events_url":"https://api.github.com/users/jdesrosiers/received_events","type":"User","site_admin":false},"repo":{"id":124311569,"name":"api-browser-web","full_name":"jdesrosiers/api-browser-web","owner":{"login":"jdesrosiers","id":716571,"avatar_url":"https://avatars1.githubusercontent.com/u/716571?v=4","gravatar_id":"","url":"https://api.github.com/users/jdesrosiers","html_url":"https://github.com/jdesrosiers","followers_url":"https://api.github.com/users/jdesrosiers/followers","following_url":"https://api.github.com/users/jdesrosiers/following{/other_user}","gists_url":"https://api.github.com/users/jdesrosiers/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesrosiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesrosiers/subscriptions","organizations_url":"https://api.github.com/users/jdesrosiers/orgs","repos_url":"https://api.github.com/users/jdesrosiers/repos","events_url":"https://api.github.com/users/jdesrosiers/events{/privacy}","received_events_url":"https://api.github.com/users/jdesrosiers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdesrosiers/api-browser-web","description":"A web interface for the generic hypermedia API browser","fork":false,"url":"https://api.github.com/repos/jdesrosiers/api-browser-web","forks_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/forks","keys_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/teams","hooks_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/hooks","issue_events_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues/events{/number}","events_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/events","assignees_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/assignees{/user}","branches_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/branches{/branch}","tags_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/tags","blobs_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/statuses/{sha}","languages_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/languages","stargazers_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/stargazers","contributors_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/contributors","subscribers_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/subscribers","subscription_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/subscription","commits_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/contents/{+path}","compare_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/merges","archive_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/downloads","issues_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues{/number}","pulls_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls{/number}","milestones_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/milestones{/number}","notifications_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/labels{/name}","releases_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/releases{/id}","deployments_url":"https://api.github.com/repos/jdesrosiers/api-browser-web/deployments","created_at":"2018-03-08T00:13:38Z","updated_at":"2018-04-11T17:11:51Z","pushed_at":"2018-04-12T04:42:05Z","git_url":"git://github.com/jdesrosiers/api-browser-web.git","ssh_url":"git@github.com:jdesrosiers/api-browser-web.git","clone_url":"https://github.com/jdesrosiers/api-browser-web.git","svn_url":"https://github.com/jdesrosiers/api-browser-web","homepage":"https://jdesrosiers.github.io/api-browser-web/","size":1091,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19"},"html":{"href":"https://github.com/jdesrosiers/api-browser-web/pull/19"},"issue":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues/19"},"comments":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/jdesrosiers/api-browser-web/statuses/67ee27eb131f032bcbb6e0549c6c25fd06d663ef"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"tbaik"}}