{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/comments/62481442","id":62481442,"diff_hunk":"@@ -0,0 +1,37 @@\n+'use strict';\n+\n+const defaults = {\n+\tmethod: 'POST',\n+\theaders: {\n+\t\t'Authorization': process.env.EMAIL_SERVICE_ACCESS_KEY,\n+\t\t'Content-Type': 'application/json'\n+\t},\n+\tbody: {\n+\t\ttransmissionHeader: {\n+\t\t\tmetadata: {}\n+\t\t},\n+\t\tfrom: {\n+\t\t\taddress: 'myft@news-alerts.ft.com',","path":"functions/send-email/lib/build-request-options.js","position":14,"original_position":14,"commit_id":"5cad47a472dff7bc6d2f58d7711200826fe5102d","original_commit_id":"5cad47a472dff7bc6d2f58d7711200826fe5102d","user":{"login":"laurieboyes","id":4622378,"avatar_url":"https://avatars.githubusercontent.com/u/4622378?v=3","gravatar_id":"","url":"https://api.github.com/users/laurieboyes","html_url":"https://github.com/laurieboyes","followers_url":"https://api.github.com/users/laurieboyes/followers","following_url":"https://api.github.com/users/laurieboyes/following{/other_user}","gists_url":"https://api.github.com/users/laurieboyes/gists{/gist_id}","starred_url":"https://api.github.com/users/laurieboyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurieboyes/subscriptions","organizations_url":"https://api.github.com/users/laurieboyes/orgs","repos_url":"https://api.github.com/users/laurieboyes/repos","events_url":"https://api.github.com/users/laurieboyes/events{/privacy}","received_events_url":"https://api.github.com/users/laurieboyes/received_events","type":"User","site_admin":false},"body":"Will this be a real email address?","created_at":"2016-05-09T11:01:03Z","updated_at":"2016-05-09T11:01:03Z","html_url":"https://github.com/Financial-Times/next-myft-email/pull/54#discussion_r62481442","pull_request_url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/comments/62481442"},"html":{"href":"https://github.com/Financial-Times/next-myft-email/pull/54#discussion_r62481442"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54","id":69169002,"html_url":"https://github.com/Financial-Times/next-myft-email/pull/54","diff_url":"https://github.com/Financial-Times/next-myft-email/pull/54.diff","patch_url":"https://github.com/Financial-Times/next-myft-email/pull/54.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/54","number":54,"state":"open","locked":false,"title":"Send failing emails to an SQS queue","user":{"login":"keirog","id":150157,"avatar_url":"https://avatars.githubusercontent.com/u/150157?v=3","gravatar_id":"","url":"https://api.github.com/users/keirog","html_url":"https://github.com/keirog","followers_url":"https://api.github.com/users/keirog/followers","following_url":"https://api.github.com/users/keirog/following{/other_user}","gists_url":"https://api.github.com/users/keirog/gists{/gist_id}","starred_url":"https://api.github.com/users/keirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keirog/subscriptions","organizations_url":"https://api.github.com/users/keirog/orgs","repos_url":"https://api.github.com/users/keirog/repos","events_url":"https://api.github.com/users/keirog/events{/privacy}","received_events_url":"https://api.github.com/users/keirog/received_events","type":"User","site_admin":false},"body":"If the email service returns < 200 or > 299:\r\n- if 410, send the event data to the unsubscribe queue\r\n- otherwise send to the retry queue\r\n\r\nSorry for the naff PR 😷  😰 ","created_at":"2016-05-06T15:37:31Z","updated_at":"2016-05-09T11:01:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51ccf92997fbe6d43430bc2ce338e6076a980527","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/54/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-myft-email/statuses/5cad47a472dff7bc6d2f58d7711200826fe5102d","head":{"label":"Financial-Times:send-to-sqs-queues","ref":"send-to-sqs-queues","sha":"5cad47a472dff7bc6d2f58d7711200826fe5102d","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":56044938,"name":"next-myft-email","full_name":"Financial-Times/next-myft-email","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/next-myft-email","description":"Collection of services to generate myFT emails","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-myft-email","forks_url":"https://api.github.com/repos/Financial-Times/next-myft-email/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-myft-email/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-myft-email/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-myft-email/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-myft-email/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-myft-email/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-myft-email/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-myft-email/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-myft-email/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-myft-email/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-myft-email/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-myft-email/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-myft-email/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-myft-email/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-myft-email/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-myft-email/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-myft-email/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-myft-email/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-myft-email/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-myft-email/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-myft-email/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-myft-email/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-myft-email/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-myft-email/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-myft-email/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-myft-email/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/next-myft-email/deployments","created_at":"2016-04-12T08:27:08Z","updated_at":"2016-04-12T15:41:48Z","pushed_at":"2016-05-09T08:10:30Z","git_url":"git://github.com/Financial-Times/next-myft-email.git","ssh_url":"git@github.com:Financial-Times/next-myft-email.git","clone_url":"https://github.com/Financial-Times/next-myft-email.git","svn_url":"https://github.com/Financial-Times/next-myft-email","homepage":"","size":209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"57dd1626dfba20870b0ba2d1d6a7422239510dda","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":56044938,"name":"next-myft-email","full_name":"Financial-Times/next-myft-email","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/next-myft-email","description":"Collection of services to generate myFT emails","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-myft-email","forks_url":"https://api.github.com/repos/Financial-Times/next-myft-email/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-myft-email/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-myft-email/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-myft-email/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-myft-email/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-myft-email/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-myft-email/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-myft-email/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-myft-email/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-myft-email/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-myft-email/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-myft-email/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-myft-email/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-myft-email/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-myft-email/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-myft-email/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-myft-email/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-myft-email/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-myft-email/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-myft-email/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-myft-email/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-myft-email/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-myft-email/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-myft-email/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-myft-email/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-myft-email/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-myft-email/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-myft-email/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/next-myft-email/deployments","created_at":"2016-04-12T08:27:08Z","updated_at":"2016-04-12T15:41:48Z","pushed_at":"2016-05-09T08:10:30Z","git_url":"git://github.com/Financial-Times/next-myft-email.git","ssh_url":"git@github.com:Financial-Times/next-myft-email.git","clone_url":"https://github.com/Financial-Times/next-myft-email.git","svn_url":"https://github.com/Financial-Times/next-myft-email","homepage":"","size":209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54"},"html":{"href":"https://github.com/Financial-Times/next-myft-email/pull/54"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/54"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-myft-email/statuses/5cad47a472dff7bc6d2f58d7711200826fe5102d"}}}}