{"action":"created","comment":{"url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/comments/89618723","pull_request_review_id":10163431,"id":89618723,"diff_hunk":"@@ -0,0 +1,91 @@\n+const Slack = require('slack-node')\n+const configResolver = require('./configResolver')\n+const attachmentsResolver = require('./attachmentsResolver')\n+const slack = new Slack(configResolver.getConfigVariable('API_TOKEN'))\n+\n+const listUsersMethod = 'users.list'\n+const chatPostMessageMethod = 'chat.postMessage'\n+\n+getUsersList = (report) => {\n+  return new Promise((resolve, reject) => {\n+    slack.api(listUsersMethod, {}, function(err, response) {\n+      if (err) {\n+        reject(err)\n+      } else {\n+        if (report) {","path":"app/modules/chatHandler.js","position":15,"original_position":15,"commit_id":"76e7a94c06674be951aebb52987ee07280707347","original_commit_id":"76e7a94c06674be951aebb52987ee07280707347","user":{"login":"jenriquejr","id":2904943,"avatar_url":"https://avatars.githubusercontent.com/u/2904943?v=3","gravatar_id":"","url":"https://api.github.com/users/jenriquejr","html_url":"https://github.com/jenriquejr","followers_url":"https://api.github.com/users/jenriquejr/followers","following_url":"https://api.github.com/users/jenriquejr/following{/other_user}","gists_url":"https://api.github.com/users/jenriquejr/gists{/gist_id}","starred_url":"https://api.github.com/users/jenriquejr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenriquejr/subscriptions","organizations_url":"https://api.github.com/users/jenriquejr/orgs","repos_url":"https://api.github.com/users/jenriquejr/repos","events_url":"https://api.github.com/users/jenriquejr/events{/privacy}","received_events_url":"https://api.github.com/users/jenriquejr/received_events","type":"User","site_admin":false},"body":"this could be `else if` I am guessing - for better indentation","created_at":"2016-11-25T13:39:58Z","updated_at":"2016-11-25T13:39:58Z","html_url":"https://github.com/jacekelgda/mr.moody/pull/2#discussion_r89618723","pull_request_url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/comments/89618723"},"html":{"href":"https://github.com/jacekelgda/mr.moody/pull/2#discussion_r89618723"},"pull_request":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2","id":94998826,"html_url":"https://github.com/jacekelgda/mr.moody/pull/2","diff_url":"https://github.com/jacekelgda/mr.moody/pull/2.diff","patch_url":"https://github.com/jacekelgda/mr.moody/pull/2.patch","issue_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues/2","number":2,"state":"open","locked":false,"title":"reporting list of campaigns","user":{"login":"jacekelgda","id":1003372,"avatar_url":"https://avatars.githubusercontent.com/u/1003372?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekelgda","html_url":"https://github.com/jacekelgda","followers_url":"https://api.github.com/users/jacekelgda/followers","following_url":"https://api.github.com/users/jacekelgda/following{/other_user}","gists_url":"https://api.github.com/users/jacekelgda/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekelgda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekelgda/subscriptions","organizations_url":"https://api.github.com/users/jacekelgda/orgs","repos_url":"https://api.github.com/users/jacekelgda/repos","events_url":"https://api.github.com/users/jacekelgda/events{/privacy}","received_events_url":"https://api.github.com/users/jacekelgda/received_events","type":"User","site_admin":false},"body":"<img width=\"701\" alt=\"zrzut ekranu 2016-11-23 o 14 58 42\" src=\"https://cloud.githubusercontent.com/assets/1003372/20562724/cb5c5330-b18d-11e6-9a08-701a6022b1b2.png\">\r\n","created_at":"2016-11-23T13:02:08Z","updated_at":"2016-11-25T13:39:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ccae4e771d6a83f11eaa733ad95945c77d03c37","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues/2/comments","statuses_url":"https://api.github.com/repos/jacekelgda/mr.moody/statuses/76e7a94c06674be951aebb52987ee07280707347","head":{"label":"jacekelgda:interactive-commands","ref":"interactive-commands","sha":"76e7a94c06674be951aebb52987ee07280707347","user":{"login":"jacekelgda","id":1003372,"avatar_url":"https://avatars.githubusercontent.com/u/1003372?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekelgda","html_url":"https://github.com/jacekelgda","followers_url":"https://api.github.com/users/jacekelgda/followers","following_url":"https://api.github.com/users/jacekelgda/following{/other_user}","gists_url":"https://api.github.com/users/jacekelgda/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekelgda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekelgda/subscriptions","organizations_url":"https://api.github.com/users/jacekelgda/orgs","repos_url":"https://api.github.com/users/jacekelgda/repos","events_url":"https://api.github.com/users/jacekelgda/events{/privacy}","received_events_url":"https://api.github.com/users/jacekelgda/received_events","type":"User","site_admin":false},"repo":{"id":74465353,"name":"mr.moody","full_name":"jacekelgda/mr.moody","owner":{"login":"jacekelgda","id":1003372,"avatar_url":"https://avatars.githubusercontent.com/u/1003372?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekelgda","html_url":"https://github.com/jacekelgda","followers_url":"https://api.github.com/users/jacekelgda/followers","following_url":"https://api.github.com/users/jacekelgda/following{/other_user}","gists_url":"https://api.github.com/users/jacekelgda/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekelgda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekelgda/subscriptions","organizations_url":"https://api.github.com/users/jacekelgda/orgs","repos_url":"https://api.github.com/users/jacekelgda/repos","events_url":"https://api.github.com/users/jacekelgda/events{/privacy}","received_events_url":"https://api.github.com/users/jacekelgda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacekelgda/mr.moody","description":"Slack integration","fork":false,"url":"https://api.github.com/repos/jacekelgda/mr.moody","forks_url":"https://api.github.com/repos/jacekelgda/mr.moody/forks","keys_url":"https://api.github.com/repos/jacekelgda/mr.moody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacekelgda/mr.moody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacekelgda/mr.moody/teams","hooks_url":"https://api.github.com/repos/jacekelgda/mr.moody/hooks","issue_events_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues/events{/number}","events_url":"https://api.github.com/repos/jacekelgda/mr.moody/events","assignees_url":"https://api.github.com/repos/jacekelgda/mr.moody/assignees{/user}","branches_url":"https://api.github.com/repos/jacekelgda/mr.moody/branches{/branch}","tags_url":"https://api.github.com/repos/jacekelgda/mr.moody/tags","blobs_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacekelgda/mr.moody/statuses/{sha}","languages_url":"https://api.github.com/repos/jacekelgda/mr.moody/languages","stargazers_url":"https://api.github.com/repos/jacekelgda/mr.moody/stargazers","contributors_url":"https://api.github.com/repos/jacekelgda/mr.moody/contributors","subscribers_url":"https://api.github.com/repos/jacekelgda/mr.moody/subscribers","subscription_url":"https://api.github.com/repos/jacekelgda/mr.moody/subscription","commits_url":"https://api.github.com/repos/jacekelgda/mr.moody/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacekelgda/mr.moody/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacekelgda/mr.moody/contents/{+path}","compare_url":"https://api.github.com/repos/jacekelgda/mr.moody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacekelgda/mr.moody/merges","archive_url":"https://api.github.com/repos/jacekelgda/mr.moody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacekelgda/mr.moody/downloads","issues_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues{/number}","pulls_url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls{/number}","milestones_url":"https://api.github.com/repos/jacekelgda/mr.moody/milestones{/number}","notifications_url":"https://api.github.com/repos/jacekelgda/mr.moody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacekelgda/mr.moody/labels{/name}","releases_url":"https://api.github.com/repos/jacekelgda/mr.moody/releases{/id}","deployments_url":"https://api.github.com/repos/jacekelgda/mr.moody/deployments","created_at":"2016-11-22T11:20:48Z","updated_at":"2016-11-22T11:25:23Z","pushed_at":"2016-11-25T12:30:32Z","git_url":"git://github.com/jacekelgda/mr.moody.git","ssh_url":"git@github.com:jacekelgda/mr.moody.git","clone_url":"https://github.com/jacekelgda/mr.moody.git","svn_url":"https://github.com/jacekelgda/mr.moody","homepage":null,"size":22,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jacekelgda:master","ref":"master","sha":"cd9c1ed85a33318a90a5d70602c353c9e2d57fbc","user":{"login":"jacekelgda","id":1003372,"avatar_url":"https://avatars.githubusercontent.com/u/1003372?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekelgda","html_url":"https://github.com/jacekelgda","followers_url":"https://api.github.com/users/jacekelgda/followers","following_url":"https://api.github.com/users/jacekelgda/following{/other_user}","gists_url":"https://api.github.com/users/jacekelgda/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekelgda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekelgda/subscriptions","organizations_url":"https://api.github.com/users/jacekelgda/orgs","repos_url":"https://api.github.com/users/jacekelgda/repos","events_url":"https://api.github.com/users/jacekelgda/events{/privacy}","received_events_url":"https://api.github.com/users/jacekelgda/received_events","type":"User","site_admin":false},"repo":{"id":74465353,"name":"mr.moody","full_name":"jacekelgda/mr.moody","owner":{"login":"jacekelgda","id":1003372,"avatar_url":"https://avatars.githubusercontent.com/u/1003372?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekelgda","html_url":"https://github.com/jacekelgda","followers_url":"https://api.github.com/users/jacekelgda/followers","following_url":"https://api.github.com/users/jacekelgda/following{/other_user}","gists_url":"https://api.github.com/users/jacekelgda/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekelgda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekelgda/subscriptions","organizations_url":"https://api.github.com/users/jacekelgda/orgs","repos_url":"https://api.github.com/users/jacekelgda/repos","events_url":"https://api.github.com/users/jacekelgda/events{/privacy}","received_events_url":"https://api.github.com/users/jacekelgda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacekelgda/mr.moody","description":"Slack integration","fork":false,"url":"https://api.github.com/repos/jacekelgda/mr.moody","forks_url":"https://api.github.com/repos/jacekelgda/mr.moody/forks","keys_url":"https://api.github.com/repos/jacekelgda/mr.moody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacekelgda/mr.moody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacekelgda/mr.moody/teams","hooks_url":"https://api.github.com/repos/jacekelgda/mr.moody/hooks","issue_events_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues/events{/number}","events_url":"https://api.github.com/repos/jacekelgda/mr.moody/events","assignees_url":"https://api.github.com/repos/jacekelgda/mr.moody/assignees{/user}","branches_url":"https://api.github.com/repos/jacekelgda/mr.moody/branches{/branch}","tags_url":"https://api.github.com/repos/jacekelgda/mr.moody/tags","blobs_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacekelgda/mr.moody/statuses/{sha}","languages_url":"https://api.github.com/repos/jacekelgda/mr.moody/languages","stargazers_url":"https://api.github.com/repos/jacekelgda/mr.moody/stargazers","contributors_url":"https://api.github.com/repos/jacekelgda/mr.moody/contributors","subscribers_url":"https://api.github.com/repos/jacekelgda/mr.moody/subscribers","subscription_url":"https://api.github.com/repos/jacekelgda/mr.moody/subscription","commits_url":"https://api.github.com/repos/jacekelgda/mr.moody/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacekelgda/mr.moody/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacekelgda/mr.moody/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacekelgda/mr.moody/contents/{+path}","compare_url":"https://api.github.com/repos/jacekelgda/mr.moody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacekelgda/mr.moody/merges","archive_url":"https://api.github.com/repos/jacekelgda/mr.moody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacekelgda/mr.moody/downloads","issues_url":"https://api.github.com/repos/jacekelgda/mr.moody/issues{/number}","pulls_url":"https://api.github.com/repos/jacekelgda/mr.moody/pulls{/number}","milestones_url":"https://api.github.com/repos/jacekelgda/mr.moody/milestones{/number}","notifications_url":"https://api.github.com/repos/jacekelgda/mr.moody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacekelgda/mr.moody/labels{/name}","releases_url":"https://api.github.com/repos/jacekelgda/mr.moody/releases{/id}","deployments_url":"https://api.github.com/repos/jacekelgda/mr.moody/deployments","created_at":"2016-11-22T11:20:48Z","updated_at":"2016-11-22T11:25:23Z","pushed_at":"2016-11-25T12:30:32Z","git_url":"git://github.com/jacekelgda/mr.moody.git","ssh_url":"git@github.com:jacekelgda/mr.moody.git","clone_url":"https://github.com/jacekelgda/mr.moody.git","svn_url":"https://github.com/jacekelgda/mr.moody","homepage":null,"size":22,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2"},"html":{"href":"https://github.com/jacekelgda/mr.moody/pull/2"},"issue":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/issues/2"},"comments":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jacekelgda/mr.moody/statuses/76e7a94c06674be951aebb52987ee07280707347"}}}}
{"actor":{"display_login":"jenriquejr"}}