{"action":"created","comment":{"url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/comments/35326451","id":35326451,"diff_hunk":"@@ -14,5 +14,15 @@ module.exports = {\n   redis: {\n     port: process.env.REDIS_PORT || 6379,\n     host: process.env.REDIS_HOST || '127.0.0.1'\n+  },\n+  email: {\n+    safeMode: false,\n+    port: 587,\n+    host: 'email-smtp.eu-west-1.amazonaws.com',\n+    auth: {\n+      user: 'username',\n+      pass: 'password'\n+    },\n+    from: 'brp@dsp.notprod.homeoffice.gov.uk'","path":"config.js","position":13,"original_position":13,"commit_id":"22c6b1ac234865a830001e0a3f98636e8c6578e8","original_commit_id":"22c6b1ac234865a830001e0a3f98636e8c6578e8","user":{"login":"JoeChapman","id":1274835,"avatar_url":"https://avatars.githubusercontent.com/u/1274835?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeChapman","html_url":"https://github.com/JoeChapman","followers_url":"https://api.github.com/users/JoeChapman/followers","following_url":"https://api.github.com/users/JoeChapman/following{/other_user}","gists_url":"https://api.github.com/users/JoeChapman/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeChapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeChapman/subscriptions","organizations_url":"https://api.github.com/users/JoeChapman/orgs","repos_url":"https://api.github.com/users/JoeChapman/repos","events_url":"https://api.github.com/users/JoeChapman/events{/privacy}","received_events_url":"https://api.github.com/users/JoeChapman/received_events","type":"User","site_admin":false},"body":"Why aren't these settings configurable from the environment?","created_at":"2015-07-23T14:26:21Z","updated_at":"2015-07-23T14:26:21Z","html_url":"https://github.com/UKHomeOffice/brp_app/pull/75#discussion_r35326451","pull_request_url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/comments/35326451"},"html":{"href":"https://github.com/UKHomeOffice/brp_app/pull/75#discussion_r35326451"},"pull_request":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75","id":40677168,"html_url":"https://github.com/UKHomeOffice/brp_app/pull/75","diff_url":"https://github.com/UKHomeOffice/brp_app/pull/75.diff","patch_url":"https://github.com/UKHomeOffice/brp_app/pull/75.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/75","number":75,"state":"open","locked":false,"title":"Send email - error journey","user":{"login":"easternbloc","id":92585,"avatar_url":"https://avatars.githubusercontent.com/u/92585?v=3","gravatar_id":"","url":"https://api.github.com/users/easternbloc","html_url":"https://github.com/easternbloc","followers_url":"https://api.github.com/users/easternbloc/followers","following_url":"https://api.github.com/users/easternbloc/following{/other_user}","gists_url":"https://api.github.com/users/easternbloc/gists{/gist_id}","starred_url":"https://api.github.com/users/easternbloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easternbloc/subscriptions","organizations_url":"https://api.github.com/users/easternbloc/orgs","repos_url":"https://api.github.com/users/easternbloc/repos","events_url":"https://api.github.com/users/easternbloc/events{/privacy}","received_events_url":"https://api.github.com/users/easternbloc/received_events","type":"User","site_admin":false},"body":"Create a model for the email service\nAdd a email for the error endpoint\nTests","created_at":"2015-07-23T14:23:18Z","updated_at":"2015-07-23T14:26:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6024f7c43a797c838d9f2b136ab594f49775a1ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/75/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/brp_app/statuses/22c6b1ac234865a830001e0a3f98636e8c6578e8","head":{"label":"UKHomeOffice:feature/email","ref":"feature/email","sha":"22c6b1ac234865a830001e0a3f98636e8c6578e8","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":37527063,"name":"brp_app","full_name":"UKHomeOffice/brp_app","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/brp_app","description":"BRP Application project for nodejs","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/brp_app","forks_url":"https://api.github.com/repos/UKHomeOffice/brp_app/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/brp_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/brp_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/brp_app/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/brp_app/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/brp_app/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/brp_app/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/brp_app/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/brp_app/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/brp_app/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/brp_app/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/brp_app/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/brp_app/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/brp_app/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/brp_app/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/brp_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/brp_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/brp_app/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/brp_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/brp_app/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/brp_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/brp_app/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/brp_app/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/brp_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/brp_app/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/brp_app/releases{/id}","created_at":"2015-06-16T11:52:30Z","updated_at":"2015-07-09T08:30:22Z","pushed_at":"2015-07-23T14:23:19Z","git_url":"git://github.com/UKHomeOffice/brp_app.git","ssh_url":"git@github.com:UKHomeOffice/brp_app.git","clone_url":"https://github.com/UKHomeOffice/brp_app.git","svn_url":"https://github.com/UKHomeOffice/brp_app","homepage":null,"size":1273,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"UKHomeOffice:master","ref":"master","sha":"8a2925de79dcd2b413ca5bb49b78b11c27333c78","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":37527063,"name":"brp_app","full_name":"UKHomeOffice/brp_app","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/brp_app","description":"BRP Application project for nodejs","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/brp_app","forks_url":"https://api.github.com/repos/UKHomeOffice/brp_app/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/brp_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/brp_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/brp_app/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/brp_app/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/brp_app/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/brp_app/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/brp_app/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/brp_app/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/brp_app/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/brp_app/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/brp_app/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/brp_app/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/brp_app/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/brp_app/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/brp_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/brp_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/brp_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/brp_app/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/brp_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/brp_app/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/brp_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/brp_app/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/brp_app/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/brp_app/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/brp_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/brp_app/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/brp_app/releases{/id}","created_at":"2015-06-16T11:52:30Z","updated_at":"2015-07-09T08:30:22Z","pushed_at":"2015-07-23T14:23:19Z","git_url":"git://github.com/UKHomeOffice/brp_app.git","ssh_url":"git@github.com:UKHomeOffice/brp_app.git","clone_url":"https://github.com/UKHomeOffice/brp_app.git","svn_url":"https://github.com/UKHomeOffice/brp_app","homepage":null,"size":1273,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75"},"html":{"href":"https://github.com/UKHomeOffice/brp_app/pull/75"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/75"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/brp_app/statuses/22c6b1ac234865a830001e0a3f98636e8c6578e8"}}}}