{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/comments/53607122","id":53607122,"diff_hunk":"@@ -28,7 +28,7 @@ module.exports = (event) => {\n \n \t\t\tif (res.status !== 200) {\n \t\t\t\tconsole.log('transforms/referrer', 'status was not a 200', res.status);\n-\t\t\t\treturn { }\n+\t\t\t\tthrow 'Status was not a 200';","path":"server/transforms/referrer-api.js","position":14,"original_position":14,"commit_id":"871fde9d45aca659b9ecefbd46b923b043a239cc","original_commit_id":"871fde9d45aca659b9ecefbd46b923b043a239cc","user":{"login":"akilananb","id":15230121,"avatar_url":"https://avatars.githubusercontent.com/u/15230121?v=3","gravatar_id":"","url":"https://api.github.com/users/akilananb","html_url":"https://github.com/akilananb","followers_url":"https://api.github.com/users/akilananb/followers","following_url":"https://api.github.com/users/akilananb/following{/other_user}","gists_url":"https://api.github.com/users/akilananb/gists{/gist_id}","starred_url":"https://api.github.com/users/akilananb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akilananb/subscriptions","organizations_url":"https://api.github.com/users/akilananb/orgs","repos_url":"https://api.github.com/users/akilananb/repos","events_url":"https://api.github.com/users/akilananb/events{/privacy}","received_events_url":"https://api.github.com/users/akilananb/received_events","type":"User","site_admin":false},"body":"That was a mistake...Made promise catch to handle the null values to prevent execution for promise chaining to avoid login on \"other referrer\". ","created_at":"2016-02-22T10:25:26Z","updated_at":"2016-02-22T10:25:26Z","html_url":"https://github.com/Financial-Times/spoor-enrichment/pull/249#discussion_r53607122","pull_request_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/comments/53607122"},"html":{"href":"https://github.com/Financial-Times/spoor-enrichment/pull/249#discussion_r53607122"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249","id":60147549,"html_url":"https://github.com/Financial-Times/spoor-enrichment/pull/249","diff_url":"https://github.com/Financial-Times/spoor-enrichment/pull/249.diff","patch_url":"https://github.com/Financial-Times/spoor-enrichment/pull/249.patch","issue_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/249","number":249,"state":"open","locked":false,"title":"Traffic source change in reference to issue 248","user":{"login":"akilananb","id":15230121,"avatar_url":"https://avatars.githubusercontent.com/u/15230121?v=3","gravatar_id":"","url":"https://api.github.com/users/akilananb","html_url":"https://github.com/akilananb","followers_url":"https://api.github.com/users/akilananb/followers","following_url":"https://api.github.com/users/akilananb/following{/other_user}","gists_url":"https://api.github.com/users/akilananb/gists{/gist_id}","starred_url":"https://api.github.com/users/akilananb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akilananb/subscriptions","organizations_url":"https://api.github.com/users/akilananb/orgs","repos_url":"https://api.github.com/users/akilananb/repos","events_url":"https://api.github.com/users/akilananb/events{/privacy}","received_events_url":"https://api.github.com/users/akilananb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-22T09:49:52Z","updated_at":"2016-02-22T10:25:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5763b3e0208814625b46653d21b0ec4f678d435","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/249/comments","statuses_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/statuses/871fde9d45aca659b9ecefbd46b923b043a239cc","head":{"label":"Financial-Times:traffic-source-248","ref":"traffic-source-248","sha":"871fde9d45aca659b9ecefbd46b923b043a239cc","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":35812583,"name":"spoor-enrichment","full_name":"Financial-Times/spoor-enrichment","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/spoor-enrichment","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/spoor-enrichment","forks_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/forks","keys_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/teams","hooks_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/events","assignees_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/tags","blobs_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/subscription","commits_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/merges","archive_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/downloads","issues_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/deployments","created_at":"2015-05-18T10:53:20Z","updated_at":"2016-01-11T12:20:57Z","pushed_at":"2016-02-22T09:49:52Z","git_url":"git://github.com/Financial-Times/spoor-enrichment.git","ssh_url":"git@github.com:Financial-Times/spoor-enrichment.git","clone_url":"https://github.com/Financial-Times/spoor-enrichment.git","svn_url":"https://github.com/Financial-Times/spoor-enrichment","homepage":null,"size":621,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":44,"forks":3,"open_issues":44,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"613614ed623c373e6f76a0712148a181e134dae4","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":35812583,"name":"spoor-enrichment","full_name":"Financial-Times/spoor-enrichment","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/spoor-enrichment","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/spoor-enrichment","forks_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/forks","keys_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/teams","hooks_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/events","assignees_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/tags","blobs_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/subscription","commits_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/merges","archive_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/downloads","issues_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/spoor-enrichment/deployments","created_at":"2015-05-18T10:53:20Z","updated_at":"2016-01-11T12:20:57Z","pushed_at":"2016-02-22T09:49:52Z","git_url":"git://github.com/Financial-Times/spoor-enrichment.git","ssh_url":"git@github.com:Financial-Times/spoor-enrichment.git","clone_url":"https://github.com/Financial-Times/spoor-enrichment.git","svn_url":"https://github.com/Financial-Times/spoor-enrichment","homepage":null,"size":621,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":44,"forks":3,"open_issues":44,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249"},"html":{"href":"https://github.com/Financial-Times/spoor-enrichment/pull/249"},"issue":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/249"},"comments":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/spoor-enrichment/statuses/871fde9d45aca659b9ecefbd46b923b043a239cc"}}}}