{"action":"created","comment":{"url":"https://api.github.com/repos/withspectrum/spectrum/pulls/comments/183323307","pull_request_review_id":114298248,"id":183323307,"diff_hunk":"@@ -0,0 +1,38 @@\n+// @flow\n+const debug = require('debug')('hermes:queue:send-new-moderator-welcome-email');\n+import Raven from 'shared/raven';\n+import sendEmail from '../send-email';\n+import {\n+  SEND_NEW_MODERATOR_WELCOME_EMAIL,\n+  NEW_MODERATOR_WELCOME_TEMPLATE,\n+} from './constants';\n+import type { Job, SendAddedModeratorEmailJobData } from 'shared/bull/types';\n+\n+export default (job: Job<SendAddedModeratorEmailJobData>) => {\n+  debug(`\\nnew job: ${job.id}`);\n+  const { recipient, community } = job.data;\n+  debug(`\\nsending notification to user: ${recipient.email}`);\n+\n+  const subject = `You are now a moderator of the ${community.name} community!`;\n+  const preheader = ``; //TODO(@littlestudent)","path":"hermes/queues/send-new-moderator-email.js","position":17,"original_position":17,"commit_id":"8781596ec07ac7b37334ac9d8f7fdacc6a8fe4fb","original_commit_id":"8781596ec07ac7b37334ac9d8f7fdacc6a8fe4fb","user":{"login":"littleStudent","id":815520,"avatar_url":"https://avatars0.githubusercontent.com/u/815520?v=4","gravatar_id":"","url":"https://api.github.com/users/littleStudent","html_url":"https://github.com/littleStudent","followers_url":"https://api.github.com/users/littleStudent/followers","following_url":"https://api.github.com/users/littleStudent/following{/other_user}","gists_url":"https://api.github.com/users/littleStudent/gists{/gist_id}","starred_url":"https://api.github.com/users/littleStudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littleStudent/subscriptions","organizations_url":"https://api.github.com/users/littleStudent/orgs","repos_url":"https://api.github.com/users/littleStudent/repos","events_url":"https://api.github.com/users/littleStudent/events{/privacy}","received_events_url":"https://api.github.com/users/littleStudent/received_events","type":"User","site_admin":false},"body":"not sure what to use as the preheader.\r\nsuggestions?","created_at":"2018-04-23T09:09:54Z","updated_at":"2018-04-23T09:09:54Z","html_url":"https://github.com/withspectrum/spectrum/pull/2942#discussion_r183323307","pull_request_url":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/withspectrum/spectrum/pulls/comments/183323307"},"html":{"href":"https://github.com/withspectrum/spectrum/pull/2942#discussion_r183323307"},"pull_request":{"href":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942"}}},"pull_request":{"url":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942","id":183369093,"html_url":"https://github.com/withspectrum/spectrum/pull/2942","diff_url":"https://github.com/withspectrum/spectrum/pull/2942.diff","patch_url":"https://github.com/withspectrum/spectrum/pull/2942.patch","issue_url":"https://api.github.com/repos/withspectrum/spectrum/issues/2942","number":2942,"state":"open","locked":false,"title":"Focus chatinput after composing a new dm","user":{"login":"littleStudent","id":815520,"avatar_url":"https://avatars0.githubusercontent.com/u/815520?v=4","gravatar_id":"","url":"https://api.github.com/users/littleStudent","html_url":"https://github.com/littleStudent","followers_url":"https://api.github.com/users/littleStudent/followers","following_url":"https://api.github.com/users/littleStudent/following{/other_user}","gists_url":"https://api.github.com/users/littleStudent/gists{/gist_id}","starred_url":"https://api.github.com/users/littleStudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littleStudent/subscriptions","organizations_url":"https://api.github.com/users/littleStudent/orgs","repos_url":"https://api.github.com/users/littleStudent/repos","events_url":"https://api.github.com/users/littleStudent/events{/privacy}","received_events_url":"https://api.github.com/users/littleStudent/received_events","type":"User","site_admin":false},"body":"<!-- FILL OUT THE BELOW FORM OR YOUR PR WILL BE AUTOMATICALLY CLOSED -->\r\n**Status**\r\n- [X] WIP\r\n- [ ] Ready for review\r\n- [ ] Needs testing\r\n\r\n**Deploy after merge (delete what needn't be deployed)**\r\n- api\r\n- hyperion (frontend)\r\n- athena\r\n- hermes\r\n\r\n**Run database migrations (delete if no migration was added)**\r\nNO\r\n\r\n**Release notes for users (delete if codebase-only change)**\r\n- Users will now get notified via email and notification if they are selected as a moderator.\r\n\r\n<!--\r\n\r\nIf your pull request introduces changes to the user interface on Spectrum, please share before and after screenshots of the changes (gifs or videos are encouraged for interaction changes). Please include screenshots of desktop and mobile viewports to ensure that all responsive cases are reviewed.\r\n\r\n-->\r\n","created_at":"2018-04-23T09:08:09Z","updated_at":"2018-04-23T09:09:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c68d3559f4ea56c4e7754a3ac9452677fd56328","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":562602175,"url":"https://api.github.com/repos/withspectrum/spectrum/labels/WIP:%20Building","name":"WIP: Building","color":"EAA736","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942/commits","review_comments_url":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942/comments","review_comment_url":"https://api.github.com/repos/withspectrum/spectrum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/withspectrum/spectrum/issues/2942/comments","statuses_url":"https://api.github.com/repos/withspectrum/spectrum/statuses/8781596ec07ac7b37334ac9d8f7fdacc6a8fe4fb","head":{"label":"littleStudent:focus-chatinput-after-composing-a-new-DM","ref":"focus-chatinput-after-composing-a-new-DM","sha":"8781596ec07ac7b37334ac9d8f7fdacc6a8fe4fb","user":{"login":"littleStudent","id":815520,"avatar_url":"https://avatars0.githubusercontent.com/u/815520?v=4","gravatar_id":"","url":"https://api.github.com/users/littleStudent","html_url":"https://github.com/littleStudent","followers_url":"https://api.github.com/users/littleStudent/followers","following_url":"https://api.github.com/users/littleStudent/following{/other_user}","gists_url":"https://api.github.com/users/littleStudent/gists{/gist_id}","starred_url":"https://api.github.com/users/littleStudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littleStudent/subscriptions","organizations_url":"https://api.github.com/users/littleStudent/orgs","repos_url":"https://api.github.com/users/littleStudent/repos","events_url":"https://api.github.com/users/littleStudent/events{/privacy}","received_events_url":"https://api.github.com/users/littleStudent/received_events","type":"User","site_admin":false},"repo":{"id":129968693,"name":"spectrum","full_name":"littleStudent/spectrum","owner":{"login":"littleStudent","id":815520,"avatar_url":"https://avatars0.githubusercontent.com/u/815520?v=4","gravatar_id":"","url":"https://api.github.com/users/littleStudent","html_url":"https://github.com/littleStudent","followers_url":"https://api.github.com/users/littleStudent/followers","following_url":"https://api.github.com/users/littleStudent/following{/other_user}","gists_url":"https://api.github.com/users/littleStudent/gists{/gist_id}","starred_url":"https://api.github.com/users/littleStudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littleStudent/subscriptions","organizations_url":"https://api.github.com/users/littleStudent/orgs","repos_url":"https://api.github.com/users/littleStudent/repos","events_url":"https://api.github.com/users/littleStudent/events{/privacy}","received_events_url":"https://api.github.com/users/littleStudent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/littleStudent/spectrum","description":"Simple, powerful online communities.","fork":true,"url":"https://api.github.com/repos/littleStudent/spectrum","forks_url":"https://api.github.com/repos/littleStudent/spectrum/forks","keys_url":"https://api.github.com/repos/littleStudent/spectrum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/littleStudent/spectrum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/littleStudent/spectrum/teams","hooks_url":"https://api.github.com/repos/littleStudent/spectrum/hooks","issue_events_url":"https://api.github.com/repos/littleStudent/spectrum/issues/events{/number}","events_url":"https://api.github.com/repos/littleStudent/spectrum/events","assignees_url":"https://api.github.com/repos/littleStudent/spectrum/assignees{/user}","branches_url":"https://api.github.com/repos/littleStudent/spectrum/branches{/branch}","tags_url":"https://api.github.com/repos/littleStudent/spectrum/tags","blobs_url":"https://api.github.com/repos/littleStudent/spectrum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/littleStudent/spectrum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/littleStudent/spectrum/git/refs{/sha}","trees_url":"https://api.github.com/repos/littleStudent/spectrum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/littleStudent/spectrum/statuses/{sha}","languages_url":"https://api.github.com/repos/littleStudent/spectrum/languages","stargazers_url":"https://api.github.com/repos/littleStudent/spectrum/stargazers","contributors_url":"https://api.github.com/repos/littleStudent/spectrum/contributors","subscribers_url":"https://api.github.com/repos/littleStudent/spectrum/subscribers","subscription_url":"https://api.github.com/repos/littleStudent/spectrum/subscription","commits_url":"https://api.github.com/repos/littleStudent/spectrum/commits{/sha}","git_commits_url":"https://api.github.com/repos/littleStudent/spectrum/git/commits{/sha}","comments_url":"https://api.github.com/repos/littleStudent/spectrum/comments{/number}","issue_comment_url":"https://api.github.com/repos/littleStudent/spectrum/issues/comments{/number}","contents_url":"https://api.github.com/repos/littleStudent/spectrum/contents/{+path}","compare_url":"https://api.github.com/repos/littleStudent/spectrum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/littleStudent/spectrum/merges","archive_url":"https://api.github.com/repos/littleStudent/spectrum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/littleStudent/spectrum/downloads","issues_url":"https://api.github.com/repos/littleStudent/spectrum/issues{/number}","pulls_url":"https://api.github.com/repos/littleStudent/spectrum/pulls{/number}","milestones_url":"https://api.github.com/repos/littleStudent/spectrum/milestones{/number}","notifications_url":"https://api.github.com/repos/littleStudent/spectrum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/littleStudent/spectrum/labels{/name}","releases_url":"https://api.github.com/repos/littleStudent/spectrum/releases{/id}","deployments_url":"https://api.github.com/repos/littleStudent/spectrum/deployments","created_at":"2018-04-17T21:44:01Z","updated_at":"2018-04-17T21:44:06Z","pushed_at":"2018-04-23T09:05:51Z","git_url":"git://github.com/littleStudent/spectrum.git","ssh_url":"git@github.com:littleStudent/spectrum.git","clone_url":"https://github.com/littleStudent/spectrum.git","svn_url":"https://github.com/littleStudent/spectrum","homepage":"https://spectrum.chat","size":23310,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"alpha"}},"base":{"label":"withspectrum:alpha","ref":"alpha","sha":"e220feffc7a1f8cdee6093fc60c95e41f7cf44e7","user":{"login":"withspectrum","id":25838825,"avatar_url":"https://avatars1.githubusercontent.com/u/25838825?v=4","gravatar_id":"","url":"https://api.github.com/users/withspectrum","html_url":"https://github.com/withspectrum","followers_url":"https://api.github.com/users/withspectrum/followers","following_url":"https://api.github.com/users/withspectrum/following{/other_user}","gists_url":"https://api.github.com/users/withspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/withspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withspectrum/subscriptions","organizations_url":"https://api.github.com/users/withspectrum/orgs","repos_url":"https://api.github.com/users/withspectrum/repos","events_url":"https://api.github.com/users/withspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/withspectrum/received_events","type":"Organization","site_admin":false},"repo":{"id":62260083,"name":"spectrum","full_name":"withspectrum/spectrum","owner":{"login":"withspectrum","id":25838825,"avatar_url":"https://avatars1.githubusercontent.com/u/25838825?v=4","gravatar_id":"","url":"https://api.github.com/users/withspectrum","html_url":"https://github.com/withspectrum","followers_url":"https://api.github.com/users/withspectrum/followers","following_url":"https://api.github.com/users/withspectrum/following{/other_user}","gists_url":"https://api.github.com/users/withspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/withspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withspectrum/subscriptions","organizations_url":"https://api.github.com/users/withspectrum/orgs","repos_url":"https://api.github.com/users/withspectrum/repos","events_url":"https://api.github.com/users/withspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/withspectrum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/withspectrum/spectrum","description":"Simple, powerful online communities.","fork":false,"url":"https://api.github.com/repos/withspectrum/spectrum","forks_url":"https://api.github.com/repos/withspectrum/spectrum/forks","keys_url":"https://api.github.com/repos/withspectrum/spectrum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/withspectrum/spectrum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/withspectrum/spectrum/teams","hooks_url":"https://api.github.com/repos/withspectrum/spectrum/hooks","issue_events_url":"https://api.github.com/repos/withspectrum/spectrum/issues/events{/number}","events_url":"https://api.github.com/repos/withspectrum/spectrum/events","assignees_url":"https://api.github.com/repos/withspectrum/spectrum/assignees{/user}","branches_url":"https://api.github.com/repos/withspectrum/spectrum/branches{/branch}","tags_url":"https://api.github.com/repos/withspectrum/spectrum/tags","blobs_url":"https://api.github.com/repos/withspectrum/spectrum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/withspectrum/spectrum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/withspectrum/spectrum/git/refs{/sha}","trees_url":"https://api.github.com/repos/withspectrum/spectrum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/withspectrum/spectrum/statuses/{sha}","languages_url":"https://api.github.com/repos/withspectrum/spectrum/languages","stargazers_url":"https://api.github.com/repos/withspectrum/spectrum/stargazers","contributors_url":"https://api.github.com/repos/withspectrum/spectrum/contributors","subscribers_url":"https://api.github.com/repos/withspectrum/spectrum/subscribers","subscription_url":"https://api.github.com/repos/withspectrum/spectrum/subscription","commits_url":"https://api.github.com/repos/withspectrum/spectrum/commits{/sha}","git_commits_url":"https://api.github.com/repos/withspectrum/spectrum/git/commits{/sha}","comments_url":"https://api.github.com/repos/withspectrum/spectrum/comments{/number}","issue_comment_url":"https://api.github.com/repos/withspectrum/spectrum/issues/comments{/number}","contents_url":"https://api.github.com/repos/withspectrum/spectrum/contents/{+path}","compare_url":"https://api.github.com/repos/withspectrum/spectrum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/withspectrum/spectrum/merges","archive_url":"https://api.github.com/repos/withspectrum/spectrum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/withspectrum/spectrum/downloads","issues_url":"https://api.github.com/repos/withspectrum/spectrum/issues{/number}","pulls_url":"https://api.github.com/repos/withspectrum/spectrum/pulls{/number}","milestones_url":"https://api.github.com/repos/withspectrum/spectrum/milestones{/number}","notifications_url":"https://api.github.com/repos/withspectrum/spectrum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/withspectrum/spectrum/labels{/name}","releases_url":"https://api.github.com/repos/withspectrum/spectrum/releases{/id}","deployments_url":"https://api.github.com/repos/withspectrum/spectrum/deployments","created_at":"2016-06-29T21:47:22Z","updated_at":"2018-04-23T08:55:30Z","pushed_at":"2018-04-23T09:08:10Z","git_url":"git://github.com/withspectrum/spectrum.git","ssh_url":"git@github.com:withspectrum/spectrum.git","clone_url":"https://github.com/withspectrum/spectrum.git","svn_url":"https://github.com/withspectrum/spectrum","homepage":"https://spectrum.chat","size":23604,"stargazers_count":3206,"watchers_count":3206,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":202,"mirror_url":null,"archived":false,"open_issues_count":214,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":202,"open_issues":214,"watchers":3206,"default_branch":"alpha"}},"_links":{"self":{"href":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942"},"html":{"href":"https://github.com/withspectrum/spectrum/pull/2942"},"issue":{"href":"https://api.github.com/repos/withspectrum/spectrum/issues/2942"},"comments":{"href":"https://api.github.com/repos/withspectrum/spectrum/issues/2942/comments"},"review_comments":{"href":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942/comments"},"review_comment":{"href":"https://api.github.com/repos/withspectrum/spectrum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/withspectrum/spectrum/pulls/2942/commits"},"statuses":{"href":"https://api.github.com/repos/withspectrum/spectrum/statuses/8781596ec07ac7b37334ac9d8f7fdacc6a8fe4fb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"littleStudent"}}