{"action":"created","comment":{"url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/comments/137927727","pull_request_review_id":61663885,"id":137927727,"diff_hunk":"@@ -0,0 +1,110 @@\n+import errorResponseHandler from '../helpers/errorresponsehandler';\r\n+\r\n+/**\r\n+ * messageData validates data sent to postMessage endpoint\r\n+ * @method messageData\r\n+ * @param  {number} groupId id of the group the message is for\r\n+ * @param  {string} message body of the message\r\n+ * @param  {pstring} priority level of priority\r\n+ * @param  {number} from id of the user sending the message\r\n+ * @param  {object} res response object if the data is invalid\r\n+ *\r\n+ * @return {boolean} validity response back to the controller\r\n+ */\r\n+export const messageData = (groupId, message, priority, groupName, from, res) => {\r","path":"server/helpers/validate.js","position":14,"original_position":14,"commit_id":"df2f1a02cd690c4f4e182bad882902b37d012cbc","original_commit_id":"df2f1a02cd690c4f4e182bad882902b37d012cbc","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":"'export' is only available in ES6 (use 'esversion: 6').<br>'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).<br>'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2017-09-09T14:32:07Z","updated_at":"2017-09-09T14:32:08Z","html_url":"https://github.com/EmaEvidence/PostIt/pull/8#discussion_r137927727","pull_request_url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/comments/137927727"},"html":{"href":"https://github.com/EmaEvidence/PostIt/pull/8#discussion_r137927727"},"pull_request":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8","id":140171400,"html_url":"https://github.com/EmaEvidence/PostIt/pull/8","diff_url":"https://github.com/EmaEvidence/PostIt/pull/8.diff","patch_url":"https://github.com/EmaEvidence/PostIt/pull/8.patch","issue_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues/8","number":8,"state":"open","locked":false,"title":"Feedback implementation","user":{"login":"EmaEvidence","id":19169695,"avatar_url":"https://avatars3.githubusercontent.com/u/19169695?v=4","gravatar_id":"","url":"https://api.github.com/users/EmaEvidence","html_url":"https://github.com/EmaEvidence","followers_url":"https://api.github.com/users/EmaEvidence/followers","following_url":"https://api.github.com/users/EmaEvidence/following{/other_user}","gists_url":"https://api.github.com/users/EmaEvidence/gists{/gist_id}","starred_url":"https://api.github.com/users/EmaEvidence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmaEvidence/subscriptions","organizations_url":"https://api.github.com/users/EmaEvidence/orgs","repos_url":"https://api.github.com/users/EmaEvidence/repos","events_url":"https://api.github.com/users/EmaEvidence/events{/privacy}","received_events_url":"https://api.github.com/users/EmaEvidence/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-09T14:20:00Z","updated_at":"2017-09-09T14:32:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f19e77017a9d4ce5fb1d1e77b99e00dddf8de582","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8/commits","review_comments_url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8/comments","review_comment_url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues/8/comments","statuses_url":"https://api.github.com/repos/EmaEvidence/PostIt/statuses/df2f1a02cd690c4f4e182bad882902b37d012cbc","head":{"label":"EmaEvidence:feedback-implementation","ref":"feedback-implementation","sha":"df2f1a02cd690c4f4e182bad882902b37d012cbc","user":{"login":"EmaEvidence","id":19169695,"avatar_url":"https://avatars3.githubusercontent.com/u/19169695?v=4","gravatar_id":"","url":"https://api.github.com/users/EmaEvidence","html_url":"https://github.com/EmaEvidence","followers_url":"https://api.github.com/users/EmaEvidence/followers","following_url":"https://api.github.com/users/EmaEvidence/following{/other_user}","gists_url":"https://api.github.com/users/EmaEvidence/gists{/gist_id}","starred_url":"https://api.github.com/users/EmaEvidence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmaEvidence/subscriptions","organizations_url":"https://api.github.com/users/EmaEvidence/orgs","repos_url":"https://api.github.com/users/EmaEvidence/repos","events_url":"https://api.github.com/users/EmaEvidence/events{/privacy}","received_events_url":"https://api.github.com/users/EmaEvidence/received_events","type":"User","site_admin":false},"repo":{"id":93873740,"name":"PostIt","full_name":"EmaEvidence/PostIt","owner":{"login":"EmaEvidence","id":19169695,"avatar_url":"https://avatars3.githubusercontent.com/u/19169695?v=4","gravatar_id":"","url":"https://api.github.com/users/EmaEvidence","html_url":"https://github.com/EmaEvidence","followers_url":"https://api.github.com/users/EmaEvidence/followers","following_url":"https://api.github.com/users/EmaEvidence/following{/other_user}","gists_url":"https://api.github.com/users/EmaEvidence/gists{/gist_id}","starred_url":"https://api.github.com/users/EmaEvidence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmaEvidence/subscriptions","organizations_url":"https://api.github.com/users/EmaEvidence/orgs","repos_url":"https://api.github.com/users/EmaEvidence/repos","events_url":"https://api.github.com/users/EmaEvidence/events{/privacy}","received_events_url":"https://api.github.com/users/EmaEvidence/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmaEvidence/PostIt","description":"PostIt is a simple application that allows friends and colleagues create groups for notifications.","fork":false,"url":"https://api.github.com/repos/EmaEvidence/PostIt","forks_url":"https://api.github.com/repos/EmaEvidence/PostIt/forks","keys_url":"https://api.github.com/repos/EmaEvidence/PostIt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmaEvidence/PostIt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmaEvidence/PostIt/teams","hooks_url":"https://api.github.com/repos/EmaEvidence/PostIt/hooks","issue_events_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues/events{/number}","events_url":"https://api.github.com/repos/EmaEvidence/PostIt/events","assignees_url":"https://api.github.com/repos/EmaEvidence/PostIt/assignees{/user}","branches_url":"https://api.github.com/repos/EmaEvidence/PostIt/branches{/branch}","tags_url":"https://api.github.com/repos/EmaEvidence/PostIt/tags","blobs_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmaEvidence/PostIt/statuses/{sha}","languages_url":"https://api.github.com/repos/EmaEvidence/PostIt/languages","stargazers_url":"https://api.github.com/repos/EmaEvidence/PostIt/stargazers","contributors_url":"https://api.github.com/repos/EmaEvidence/PostIt/contributors","subscribers_url":"https://api.github.com/repos/EmaEvidence/PostIt/subscribers","subscription_url":"https://api.github.com/repos/EmaEvidence/PostIt/subscription","commits_url":"https://api.github.com/repos/EmaEvidence/PostIt/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmaEvidence/PostIt/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmaEvidence/PostIt/contents/{+path}","compare_url":"https://api.github.com/repos/EmaEvidence/PostIt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmaEvidence/PostIt/merges","archive_url":"https://api.github.com/repos/EmaEvidence/PostIt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmaEvidence/PostIt/downloads","issues_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues{/number}","pulls_url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls{/number}","milestones_url":"https://api.github.com/repos/EmaEvidence/PostIt/milestones{/number}","notifications_url":"https://api.github.com/repos/EmaEvidence/PostIt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmaEvidence/PostIt/labels{/name}","releases_url":"https://api.github.com/repos/EmaEvidence/PostIt/releases{/id}","deployments_url":"https://api.github.com/repos/EmaEvidence/PostIt/deployments","created_at":"2017-06-09T15:43:15Z","updated_at":"2017-09-07T19:02:43Z","pushed_at":"2017-09-09T14:31:34Z","git_url":"git://github.com/EmaEvidence/PostIt.git","ssh_url":"git@github.com:EmaEvidence/PostIt.git","clone_url":"https://github.com/EmaEvidence/PostIt.git","svn_url":"https://github.com/EmaEvidence/PostIt","homepage":"http://postaa.herokuapp.com/","size":2501,"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,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"Refactor-Model"}},"base":{"label":"EmaEvidence:Refactor-Model","ref":"Refactor-Model","sha":"f5d4ee6ef4eae0de04caefa27092dea3c012d943","user":{"login":"EmaEvidence","id":19169695,"avatar_url":"https://avatars3.githubusercontent.com/u/19169695?v=4","gravatar_id":"","url":"https://api.github.com/users/EmaEvidence","html_url":"https://github.com/EmaEvidence","followers_url":"https://api.github.com/users/EmaEvidence/followers","following_url":"https://api.github.com/users/EmaEvidence/following{/other_user}","gists_url":"https://api.github.com/users/EmaEvidence/gists{/gist_id}","starred_url":"https://api.github.com/users/EmaEvidence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmaEvidence/subscriptions","organizations_url":"https://api.github.com/users/EmaEvidence/orgs","repos_url":"https://api.github.com/users/EmaEvidence/repos","events_url":"https://api.github.com/users/EmaEvidence/events{/privacy}","received_events_url":"https://api.github.com/users/EmaEvidence/received_events","type":"User","site_admin":false},"repo":{"id":93873740,"name":"PostIt","full_name":"EmaEvidence/PostIt","owner":{"login":"EmaEvidence","id":19169695,"avatar_url":"https://avatars3.githubusercontent.com/u/19169695?v=4","gravatar_id":"","url":"https://api.github.com/users/EmaEvidence","html_url":"https://github.com/EmaEvidence","followers_url":"https://api.github.com/users/EmaEvidence/followers","following_url":"https://api.github.com/users/EmaEvidence/following{/other_user}","gists_url":"https://api.github.com/users/EmaEvidence/gists{/gist_id}","starred_url":"https://api.github.com/users/EmaEvidence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmaEvidence/subscriptions","organizations_url":"https://api.github.com/users/EmaEvidence/orgs","repos_url":"https://api.github.com/users/EmaEvidence/repos","events_url":"https://api.github.com/users/EmaEvidence/events{/privacy}","received_events_url":"https://api.github.com/users/EmaEvidence/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmaEvidence/PostIt","description":"PostIt is a simple application that allows friends and colleagues create groups for notifications.","fork":false,"url":"https://api.github.com/repos/EmaEvidence/PostIt","forks_url":"https://api.github.com/repos/EmaEvidence/PostIt/forks","keys_url":"https://api.github.com/repos/EmaEvidence/PostIt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmaEvidence/PostIt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmaEvidence/PostIt/teams","hooks_url":"https://api.github.com/repos/EmaEvidence/PostIt/hooks","issue_events_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues/events{/number}","events_url":"https://api.github.com/repos/EmaEvidence/PostIt/events","assignees_url":"https://api.github.com/repos/EmaEvidence/PostIt/assignees{/user}","branches_url":"https://api.github.com/repos/EmaEvidence/PostIt/branches{/branch}","tags_url":"https://api.github.com/repos/EmaEvidence/PostIt/tags","blobs_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmaEvidence/PostIt/statuses/{sha}","languages_url":"https://api.github.com/repos/EmaEvidence/PostIt/languages","stargazers_url":"https://api.github.com/repos/EmaEvidence/PostIt/stargazers","contributors_url":"https://api.github.com/repos/EmaEvidence/PostIt/contributors","subscribers_url":"https://api.github.com/repos/EmaEvidence/PostIt/subscribers","subscription_url":"https://api.github.com/repos/EmaEvidence/PostIt/subscription","commits_url":"https://api.github.com/repos/EmaEvidence/PostIt/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmaEvidence/PostIt/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmaEvidence/PostIt/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmaEvidence/PostIt/contents/{+path}","compare_url":"https://api.github.com/repos/EmaEvidence/PostIt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmaEvidence/PostIt/merges","archive_url":"https://api.github.com/repos/EmaEvidence/PostIt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmaEvidence/PostIt/downloads","issues_url":"https://api.github.com/repos/EmaEvidence/PostIt/issues{/number}","pulls_url":"https://api.github.com/repos/EmaEvidence/PostIt/pulls{/number}","milestones_url":"https://api.github.com/repos/EmaEvidence/PostIt/milestones{/number}","notifications_url":"https://api.github.com/repos/EmaEvidence/PostIt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmaEvidence/PostIt/labels{/name}","releases_url":"https://api.github.com/repos/EmaEvidence/PostIt/releases{/id}","deployments_url":"https://api.github.com/repos/EmaEvidence/PostIt/deployments","created_at":"2017-06-09T15:43:15Z","updated_at":"2017-09-07T19:02:43Z","pushed_at":"2017-09-09T14:31:34Z","git_url":"git://github.com/EmaEvidence/PostIt.git","ssh_url":"git@github.com:EmaEvidence/PostIt.git","clone_url":"https://github.com/EmaEvidence/PostIt.git","svn_url":"https://github.com/EmaEvidence/PostIt","homepage":"http://postaa.herokuapp.com/","size":2501,"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,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"Refactor-Model"}},"_links":{"self":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8"},"html":{"href":"https://github.com/EmaEvidence/PostIt/pull/8"},"issue":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/issues/8"},"comments":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/EmaEvidence/PostIt/statuses/df2f1a02cd690c4f4e182bad882902b37d012cbc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}