{"action":"created","comment":{"url":"https://api.github.com/repos/bzwheeler/amdash/pulls/comments/44416683","id":44416683,"diff_hunk":"@@ -0,0 +1,56 @@\n+// Mailgun API params\n+process.env.MAIL_URL = \"smtp://postmaster%40sandbox2ca103041bbf46928f83137b914eb42b.mailgun.org:ec8b2c2133637052b34f6fac27528f8a@smtp.mailgun.org:587\";\n+\n+// Global emailing params for lookback:emails\n+Mailer.config({\n+  from: 'AmDash <updates@MyAmDash.com>',\n+  replyTo: 'AmDash Team <team@MyAmDash.com>',\n+  plainTextOpts: {\n+    ignoreImage: true\n+  },\n+  testEmail: 'screaser@gmail.com'   // SCR not for production use, duh!\n+});\n+\n+// Initializing lookback:emails -- layout is our \"global\" template\n+Mailer.init({\n+  templates: Templates,     // Global Templates namespace, see lib/templates.js.\n+  helpers: TemplateHelpers, // Global template helper namespace.\n+  layout: {\n+    name: 'emailLayout',\n+    path: '/layout.html',   // Relative to 'private' dir.\n+    scss: '/layout.scss'\n+  }\n+});\n+\n+// Send a pre-scheduled email; triggered via SynchedCron\n+function sendMorningReport() {\n+  var emailList = getEmailsForMorningReport();","path":"web/server/mailer.js","position":27,"original_position":27,"commit_id":"254f3d3d428e31d16b43ccb9113d7f3599ed660b","original_commit_id":"254f3d3d428e31d16b43ccb9113d7f3599ed660b","user":{"login":"screaser","id":948905,"avatar_url":"https://avatars.githubusercontent.com/u/948905?v=3","gravatar_id":"","url":"https://api.github.com/users/screaser","html_url":"https://github.com/screaser","followers_url":"https://api.github.com/users/screaser/followers","following_url":"https://api.github.com/users/screaser/following{/other_user}","gists_url":"https://api.github.com/users/screaser/gists{/gist_id}","starred_url":"https://api.github.com/users/screaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screaser/subscriptions","organizations_url":"https://api.github.com/users/screaser/orgs","repos_url":"https://api.github.com/users/screaser/repos","events_url":"https://api.github.com/users/screaser/events{/privacy}","received_events_url":"https://api.github.com/users/screaser/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2015-11-10T15:08:57Z","updated_at":"2015-11-10T15:08:57Z","html_url":"https://github.com/bzwheeler/amdash/pull/8#discussion_r44416683","pull_request_url":"https://api.github.com/repos/bzwheeler/amdash/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/bzwheeler/amdash/pulls/comments/44416683"},"html":{"href":"https://github.com/bzwheeler/amdash/pull/8#discussion_r44416683"},"pull_request":{"href":"https://api.github.com/repos/bzwheeler/amdash/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/bzwheeler/amdash/pulls/8","id":49870088,"html_url":"https://github.com/bzwheeler/amdash/pull/8","diff_url":"https://github.com/bzwheeler/amdash/pull/8.diff","patch_url":"https://github.com/bzwheeler/amdash/pull/8.patch","issue_url":"https://api.github.com/repos/bzwheeler/amdash/issues/8","number":8,"state":"open","locked":false,"title":"Email basics","user":{"login":"screaser","id":948905,"avatar_url":"https://avatars.githubusercontent.com/u/948905?v=3","gravatar_id":"","url":"https://api.github.com/users/screaser","html_url":"https://github.com/screaser","followers_url":"https://api.github.com/users/screaser/followers","following_url":"https://api.github.com/users/screaser/following{/other_user}","gists_url":"https://api.github.com/users/screaser/gists{/gist_id}","starred_url":"https://api.github.com/users/screaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screaser/subscriptions","organizations_url":"https://api.github.com/users/screaser/orgs","repos_url":"https://api.github.com/users/screaser/repos","events_url":"https://api.github.com/users/screaser/events{/privacy}","received_events_url":"https://api.github.com/users/screaser/received_events","type":"User","site_admin":false},"body":"I think this is stable enough to merge to develop, so others can play with it…\n\n(Loving this cron package — simplest scheduling mechanism I’ve ever seen.)","created_at":"2015-11-05T19:40:21Z","updated_at":"2015-11-10T15:08:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99387d27ac0639089511f41848371ec6e648eb13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bzwheeler/amdash/pulls/8/commits","review_comments_url":"https://api.github.com/repos/bzwheeler/amdash/pulls/8/comments","review_comment_url":"https://api.github.com/repos/bzwheeler/amdash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bzwheeler/amdash/issues/8/comments","statuses_url":"https://api.github.com/repos/bzwheeler/amdash/statuses/254f3d3d428e31d16b43ccb9113d7f3599ed660b","head":{"label":"bzwheeler:email-basics","ref":"email-basics","sha":"254f3d3d428e31d16b43ccb9113d7f3599ed660b","user":{"login":"bzwheeler","id":1641097,"avatar_url":"https://avatars.githubusercontent.com/u/1641097?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwheeler","html_url":"https://github.com/bzwheeler","followers_url":"https://api.github.com/users/bzwheeler/followers","following_url":"https://api.github.com/users/bzwheeler/following{/other_user}","gists_url":"https://api.github.com/users/bzwheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwheeler/subscriptions","organizations_url":"https://api.github.com/users/bzwheeler/orgs","repos_url":"https://api.github.com/users/bzwheeler/repos","events_url":"https://api.github.com/users/bzwheeler/events{/privacy}","received_events_url":"https://api.github.com/users/bzwheeler/received_events","type":"User","site_admin":false},"repo":{"id":40604113,"name":"amdash","full_name":"bzwheeler/amdash","owner":{"login":"bzwheeler","id":1641097,"avatar_url":"https://avatars.githubusercontent.com/u/1641097?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwheeler","html_url":"https://github.com/bzwheeler","followers_url":"https://api.github.com/users/bzwheeler/followers","following_url":"https://api.github.com/users/bzwheeler/following{/other_user}","gists_url":"https://api.github.com/users/bzwheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwheeler/subscriptions","organizations_url":"https://api.github.com/users/bzwheeler/orgs","repos_url":"https://api.github.com/users/bzwheeler/repos","events_url":"https://api.github.com/users/bzwheeler/events{/privacy}","received_events_url":"https://api.github.com/users/bzwheeler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bzwheeler/amdash","description":"Amazon Seller Dashboard","fork":false,"url":"https://api.github.com/repos/bzwheeler/amdash","forks_url":"https://api.github.com/repos/bzwheeler/amdash/forks","keys_url":"https://api.github.com/repos/bzwheeler/amdash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bzwheeler/amdash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bzwheeler/amdash/teams","hooks_url":"https://api.github.com/repos/bzwheeler/amdash/hooks","issue_events_url":"https://api.github.com/repos/bzwheeler/amdash/issues/events{/number}","events_url":"https://api.github.com/repos/bzwheeler/amdash/events","assignees_url":"https://api.github.com/repos/bzwheeler/amdash/assignees{/user}","branches_url":"https://api.github.com/repos/bzwheeler/amdash/branches{/branch}","tags_url":"https://api.github.com/repos/bzwheeler/amdash/tags","blobs_url":"https://api.github.com/repos/bzwheeler/amdash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bzwheeler/amdash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bzwheeler/amdash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bzwheeler/amdash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bzwheeler/amdash/statuses/{sha}","languages_url":"https://api.github.com/repos/bzwheeler/amdash/languages","stargazers_url":"https://api.github.com/repos/bzwheeler/amdash/stargazers","contributors_url":"https://api.github.com/repos/bzwheeler/amdash/contributors","subscribers_url":"https://api.github.com/repos/bzwheeler/amdash/subscribers","subscription_url":"https://api.github.com/repos/bzwheeler/amdash/subscription","commits_url":"https://api.github.com/repos/bzwheeler/amdash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bzwheeler/amdash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bzwheeler/amdash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bzwheeler/amdash/issues/comments{/number}","contents_url":"https://api.github.com/repos/bzwheeler/amdash/contents/{+path}","compare_url":"https://api.github.com/repos/bzwheeler/amdash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bzwheeler/amdash/merges","archive_url":"https://api.github.com/repos/bzwheeler/amdash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bzwheeler/amdash/downloads","issues_url":"https://api.github.com/repos/bzwheeler/amdash/issues{/number}","pulls_url":"https://api.github.com/repos/bzwheeler/amdash/pulls{/number}","milestones_url":"https://api.github.com/repos/bzwheeler/amdash/milestones{/number}","notifications_url":"https://api.github.com/repos/bzwheeler/amdash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bzwheeler/amdash/labels{/name}","releases_url":"https://api.github.com/repos/bzwheeler/amdash/releases{/id}","created_at":"2015-08-12T14:06:21Z","updated_at":"2015-08-12T14:19:18Z","pushed_at":"2015-11-09T21:35:16Z","git_url":"git://github.com/bzwheeler/amdash.git","ssh_url":"git@github.com:bzwheeler/amdash.git","clone_url":"https://github.com/bzwheeler/amdash.git","svn_url":"https://github.com/bzwheeler/amdash","homepage":null,"size":456,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"develop"}},"base":{"label":"bzwheeler:develop","ref":"develop","sha":"49a8278f936a92d780943bda57ede8e16931fde7","user":{"login":"bzwheeler","id":1641097,"avatar_url":"https://avatars.githubusercontent.com/u/1641097?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwheeler","html_url":"https://github.com/bzwheeler","followers_url":"https://api.github.com/users/bzwheeler/followers","following_url":"https://api.github.com/users/bzwheeler/following{/other_user}","gists_url":"https://api.github.com/users/bzwheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwheeler/subscriptions","organizations_url":"https://api.github.com/users/bzwheeler/orgs","repos_url":"https://api.github.com/users/bzwheeler/repos","events_url":"https://api.github.com/users/bzwheeler/events{/privacy}","received_events_url":"https://api.github.com/users/bzwheeler/received_events","type":"User","site_admin":false},"repo":{"id":40604113,"name":"amdash","full_name":"bzwheeler/amdash","owner":{"login":"bzwheeler","id":1641097,"avatar_url":"https://avatars.githubusercontent.com/u/1641097?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwheeler","html_url":"https://github.com/bzwheeler","followers_url":"https://api.github.com/users/bzwheeler/followers","following_url":"https://api.github.com/users/bzwheeler/following{/other_user}","gists_url":"https://api.github.com/users/bzwheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwheeler/subscriptions","organizations_url":"https://api.github.com/users/bzwheeler/orgs","repos_url":"https://api.github.com/users/bzwheeler/repos","events_url":"https://api.github.com/users/bzwheeler/events{/privacy}","received_events_url":"https://api.github.com/users/bzwheeler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bzwheeler/amdash","description":"Amazon Seller Dashboard","fork":false,"url":"https://api.github.com/repos/bzwheeler/amdash","forks_url":"https://api.github.com/repos/bzwheeler/amdash/forks","keys_url":"https://api.github.com/repos/bzwheeler/amdash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bzwheeler/amdash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bzwheeler/amdash/teams","hooks_url":"https://api.github.com/repos/bzwheeler/amdash/hooks","issue_events_url":"https://api.github.com/repos/bzwheeler/amdash/issues/events{/number}","events_url":"https://api.github.com/repos/bzwheeler/amdash/events","assignees_url":"https://api.github.com/repos/bzwheeler/amdash/assignees{/user}","branches_url":"https://api.github.com/repos/bzwheeler/amdash/branches{/branch}","tags_url":"https://api.github.com/repos/bzwheeler/amdash/tags","blobs_url":"https://api.github.com/repos/bzwheeler/amdash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bzwheeler/amdash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bzwheeler/amdash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bzwheeler/amdash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bzwheeler/amdash/statuses/{sha}","languages_url":"https://api.github.com/repos/bzwheeler/amdash/languages","stargazers_url":"https://api.github.com/repos/bzwheeler/amdash/stargazers","contributors_url":"https://api.github.com/repos/bzwheeler/amdash/contributors","subscribers_url":"https://api.github.com/repos/bzwheeler/amdash/subscribers","subscription_url":"https://api.github.com/repos/bzwheeler/amdash/subscription","commits_url":"https://api.github.com/repos/bzwheeler/amdash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bzwheeler/amdash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bzwheeler/amdash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bzwheeler/amdash/issues/comments{/number}","contents_url":"https://api.github.com/repos/bzwheeler/amdash/contents/{+path}","compare_url":"https://api.github.com/repos/bzwheeler/amdash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bzwheeler/amdash/merges","archive_url":"https://api.github.com/repos/bzwheeler/amdash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bzwheeler/amdash/downloads","issues_url":"https://api.github.com/repos/bzwheeler/amdash/issues{/number}","pulls_url":"https://api.github.com/repos/bzwheeler/amdash/pulls{/number}","milestones_url":"https://api.github.com/repos/bzwheeler/amdash/milestones{/number}","notifications_url":"https://api.github.com/repos/bzwheeler/amdash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bzwheeler/amdash/labels{/name}","releases_url":"https://api.github.com/repos/bzwheeler/amdash/releases{/id}","created_at":"2015-08-12T14:06:21Z","updated_at":"2015-08-12T14:19:18Z","pushed_at":"2015-11-09T21:35:16Z","git_url":"git://github.com/bzwheeler/amdash.git","ssh_url":"git@github.com:bzwheeler/amdash.git","clone_url":"https://github.com/bzwheeler/amdash.git","svn_url":"https://github.com/bzwheeler/amdash","homepage":null,"size":456,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bzwheeler/amdash/pulls/8"},"html":{"href":"https://github.com/bzwheeler/amdash/pull/8"},"issue":{"href":"https://api.github.com/repos/bzwheeler/amdash/issues/8"},"comments":{"href":"https://api.github.com/repos/bzwheeler/amdash/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/bzwheeler/amdash/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/bzwheeler/amdash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bzwheeler/amdash/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/bzwheeler/amdash/statuses/254f3d3d428e31d16b43ccb9113d7f3599ed660b"}}}}