{"action":"created","comment":{"url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/comments/152030147","pull_request_review_id":77829135,"id":152030147,"diff_hunk":"@@ -0,0 +1,69 @@\n+\n+import nodemailer from 'nodemailer';\n+\n+require('dotenv').config();\n+\n+const useremail = process.env.USEREMAIL;\n+const userpass = process.env.USERPASS;\n+\n+\n+/**\n+ * function to send mail\n+ * @param {array} users array of users to send message to\n+ * @param {string} message message to be sent to users\n+ * @param {string} priorityHeader priority of the message\n+ * @return {void}\n+ */\n+const sendMail = (users, message, priorityHeader) => {\n+  // get email of the users\n+  let email = '';\n+\n+  users.forEach((user) => {\n+    email += `${user.User.email},`;","path":"server/middleware/sendMail.js","position":22,"original_position":22,"commit_id":"058160037f949030773674be3a4cdc600547b42b","original_commit_id":"058160037f949030773674be3a4cdc600547b42b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'template literal syntax' is only available in ES6 (use 'esversion: 6').","created_at":"2017-11-20T15:54:16Z","updated_at":"2017-11-20T15:54:16Z","html_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project/pull/8#discussion_r152030147","pull_request_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/comments/152030147"},"html":{"href":"https://github.com/bumsyalao/PostIt-Bootcamp-Project/pull/8#discussion_r152030147"},"pull_request":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8","id":153195198,"html_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project/pull/8","diff_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project/pull/8.diff","patch_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project/pull/8.patch","issue_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/8","number":8,"state":"open","locked":false,"title":"Feedback implementation","user":{"login":"bumsyalao","id":29775781,"avatar_url":"https://avatars1.githubusercontent.com/u/29775781?v=4","gravatar_id":"","url":"https://api.github.com/users/bumsyalao","html_url":"https://github.com/bumsyalao","followers_url":"https://api.github.com/users/bumsyalao/followers","following_url":"https://api.github.com/users/bumsyalao/following{/other_user}","gists_url":"https://api.github.com/users/bumsyalao/gists{/gist_id}","starred_url":"https://api.github.com/users/bumsyalao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumsyalao/subscriptions","organizations_url":"https://api.github.com/users/bumsyalao/orgs","repos_url":"https://api.github.com/users/bumsyalao/repos","events_url":"https://api.github.com/users/bumsyalao/events{/privacy}","received_events_url":"https://api.github.com/users/bumsyalao/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Implement feed back given\r\n","created_at":"2017-11-17T01:37:33Z","updated_at":"2017-11-20T15:54:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c5e2dc500286f377d366c1474a1f0d0095f8092","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8/commits","review_comments_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8/comments","review_comment_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/8/comments","statuses_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/statuses/058160037f949030773674be3a4cdc600547b42b","head":{"label":"bumsyalao:feedback-implementation","ref":"feedback-implementation","sha":"058160037f949030773674be3a4cdc600547b42b","user":{"login":"bumsyalao","id":29775781,"avatar_url":"https://avatars1.githubusercontent.com/u/29775781?v=4","gravatar_id":"","url":"https://api.github.com/users/bumsyalao","html_url":"https://github.com/bumsyalao","followers_url":"https://api.github.com/users/bumsyalao/followers","following_url":"https://api.github.com/users/bumsyalao/following{/other_user}","gists_url":"https://api.github.com/users/bumsyalao/gists{/gist_id}","starred_url":"https://api.github.com/users/bumsyalao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumsyalao/subscriptions","organizations_url":"https://api.github.com/users/bumsyalao/orgs","repos_url":"https://api.github.com/users/bumsyalao/repos","events_url":"https://api.github.com/users/bumsyalao/events{/privacy}","received_events_url":"https://api.github.com/users/bumsyalao/received_events","type":"User","site_admin":false},"repo":{"id":96221223,"name":"PostIt-Bootcamp-Project","full_name":"bumsyalao/PostIt-Bootcamp-Project","owner":{"login":"bumsyalao","id":29775781,"avatar_url":"https://avatars1.githubusercontent.com/u/29775781?v=4","gravatar_id":"","url":"https://api.github.com/users/bumsyalao","html_url":"https://github.com/bumsyalao","followers_url":"https://api.github.com/users/bumsyalao/followers","following_url":"https://api.github.com/users/bumsyalao/following{/other_user}","gists_url":"https://api.github.com/users/bumsyalao/gists{/gist_id}","starred_url":"https://api.github.com/users/bumsyalao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumsyalao/subscriptions","organizations_url":"https://api.github.com/users/bumsyalao/orgs","repos_url":"https://api.github.com/users/bumsyalao/repos","events_url":"https://api.github.com/users/bumsyalao/events{/privacy}","received_events_url":"https://api.github.com/users/bumsyalao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project","description":"A cool App that allows users create groups and post messages to group.","fork":false,"url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project","forks_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/forks","keys_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/teams","hooks_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/hooks","issue_events_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/events{/number}","events_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/events","assignees_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/assignees{/user}","branches_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/branches{/branch}","tags_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/tags","blobs_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/languages","stargazers_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/stargazers","contributors_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/contributors","subscribers_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/subscribers","subscription_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/subscription","commits_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/contents/{+path}","compare_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/merges","archive_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/downloads","issues_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues{/number}","pulls_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/labels{/name}","releases_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/releases{/id}","deployments_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/deployments","created_at":"2017-07-04T13:29:58Z","updated_at":"2017-09-27T00:19:12Z","pushed_at":"2017-11-20T15:53:51Z","git_url":"git://github.com/bumsyalao/PostIt-Bootcamp-Project.git","ssh_url":"git@github.com:bumsyalao/PostIt-Bootcamp-Project.git","clone_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project.git","svn_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project","homepage":"","size":17239,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bumsyalao:master","ref":"master","sha":"c54cbf693695238c5f1b029be2c453fed72312ec","user":{"login":"bumsyalao","id":29775781,"avatar_url":"https://avatars1.githubusercontent.com/u/29775781?v=4","gravatar_id":"","url":"https://api.github.com/users/bumsyalao","html_url":"https://github.com/bumsyalao","followers_url":"https://api.github.com/users/bumsyalao/followers","following_url":"https://api.github.com/users/bumsyalao/following{/other_user}","gists_url":"https://api.github.com/users/bumsyalao/gists{/gist_id}","starred_url":"https://api.github.com/users/bumsyalao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumsyalao/subscriptions","organizations_url":"https://api.github.com/users/bumsyalao/orgs","repos_url":"https://api.github.com/users/bumsyalao/repos","events_url":"https://api.github.com/users/bumsyalao/events{/privacy}","received_events_url":"https://api.github.com/users/bumsyalao/received_events","type":"User","site_admin":false},"repo":{"id":96221223,"name":"PostIt-Bootcamp-Project","full_name":"bumsyalao/PostIt-Bootcamp-Project","owner":{"login":"bumsyalao","id":29775781,"avatar_url":"https://avatars1.githubusercontent.com/u/29775781?v=4","gravatar_id":"","url":"https://api.github.com/users/bumsyalao","html_url":"https://github.com/bumsyalao","followers_url":"https://api.github.com/users/bumsyalao/followers","following_url":"https://api.github.com/users/bumsyalao/following{/other_user}","gists_url":"https://api.github.com/users/bumsyalao/gists{/gist_id}","starred_url":"https://api.github.com/users/bumsyalao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumsyalao/subscriptions","organizations_url":"https://api.github.com/users/bumsyalao/orgs","repos_url":"https://api.github.com/users/bumsyalao/repos","events_url":"https://api.github.com/users/bumsyalao/events{/privacy}","received_events_url":"https://api.github.com/users/bumsyalao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project","description":"A cool App that allows users create groups and post messages to group.","fork":false,"url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project","forks_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/forks","keys_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/teams","hooks_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/hooks","issue_events_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/events{/number}","events_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/events","assignees_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/assignees{/user}","branches_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/branches{/branch}","tags_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/tags","blobs_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/languages","stargazers_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/stargazers","contributors_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/contributors","subscribers_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/subscribers","subscription_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/subscription","commits_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/contents/{+path}","compare_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/merges","archive_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/downloads","issues_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues{/number}","pulls_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/labels{/name}","releases_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/releases{/id}","deployments_url":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/deployments","created_at":"2017-07-04T13:29:58Z","updated_at":"2017-09-27T00:19:12Z","pushed_at":"2017-11-20T15:53:51Z","git_url":"git://github.com/bumsyalao/PostIt-Bootcamp-Project.git","ssh_url":"git@github.com:bumsyalao/PostIt-Bootcamp-Project.git","clone_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project.git","svn_url":"https://github.com/bumsyalao/PostIt-Bootcamp-Project","homepage":"","size":17239,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8"},"html":{"href":"https://github.com/bumsyalao/PostIt-Bootcamp-Project/pull/8"},"issue":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/8"},"comments":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/bumsyalao/PostIt-Bootcamp-Project/statuses/058160037f949030773674be3a4cdc600547b42b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}