{"action":"created","comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/108701571","pull_request_review_id":29748331,"id":108701571,"diff_hunk":"@@ -0,0 +1,358 @@\n+/* globals Api Meteor Restivus logger processWebhookMessage*/\n+// TODO: remove globals\n+import vm from 'vm';\n+import moment from 'moment';\n+\n+const compiledScripts = {};\n+\n+const buildSandbox = function(store = {}) {","path":"packages/rocketchat-integrations/server/api/api.js","position":8,"original_position":8,"commit_id":"cbafbc5020a1c580ca2aa5cfeb7f9e37aee3a8c6","original_commit_id":"cbafbc5020a1c580ca2aa5cfeb7f9e37aee3a8c6","user":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars2.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"body":"Any reason for variables instead of named functions in this entire file?","created_at":"2017-03-29T15:06:24Z","updated_at":"2017-03-29T15:09:47Z","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/6502#discussion_r108701571","pull_request_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502","_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/108701571"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/6502#discussion_r108701571"},"pull_request":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502"}}},"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502","id":112809669,"html_url":"https://github.com/RocketChat/Rocket.Chat/pull/6502","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/6502.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/6502.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6502","number":6502,"state":"open","locked":false,"title":"converted rocketchat-integrations coffee to js","user":{"login":"ggazzo","id":5263975,"avatar_url":"https://avatars1.githubusercontent.com/u/5263975?v=3","gravatar_id":"","url":"https://api.github.com/users/ggazzo","html_url":"https://github.com/ggazzo","followers_url":"https://api.github.com/users/ggazzo/followers","following_url":"https://api.github.com/users/ggazzo/following{/other_user}","gists_url":"https://api.github.com/users/ggazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/ggazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggazzo/subscriptions","organizations_url":"https://api.github.com/users/ggazzo/orgs","repos_url":"https://api.github.com/users/ggazzo/repos","events_url":"https://api.github.com/users/ggazzo/events{/privacy}","received_events_url":"https://api.github.com/users/ggazzo/received_events","type":"User","site_admin":false},"body":"<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->\r\n@RocketChat/core \r\n<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->\r\n","created_at":"2017-03-27T18:34:05Z","updated_at":"2017-03-29T15:09:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"391f89ef8886d9d5203e7f405fd6e1a84d319675","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6502/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/cbafbc5020a1c580ca2aa5cfeb7f9e37aee3a8c6","head":{"label":"ggazzo:rocketchat-integrations","ref":"rocketchat-integrations","sha":"cbafbc5020a1c580ca2aa5cfeb7f9e37aee3a8c6","user":{"login":"ggazzo","id":5263975,"avatar_url":"https://avatars1.githubusercontent.com/u/5263975?v=3","gravatar_id":"","url":"https://api.github.com/users/ggazzo","html_url":"https://github.com/ggazzo","followers_url":"https://api.github.com/users/ggazzo/followers","following_url":"https://api.github.com/users/ggazzo/following{/other_user}","gists_url":"https://api.github.com/users/ggazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/ggazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggazzo/subscriptions","organizations_url":"https://api.github.com/users/ggazzo/orgs","repos_url":"https://api.github.com/users/ggazzo/repos","events_url":"https://api.github.com/users/ggazzo/events{/privacy}","received_events_url":"https://api.github.com/users/ggazzo/received_events","type":"User","site_admin":false},"repo":{"id":78038936,"name":"Rocket.Chat","full_name":"ggazzo/Rocket.Chat","owner":{"login":"ggazzo","id":5263975,"avatar_url":"https://avatars1.githubusercontent.com/u/5263975?v=3","gravatar_id":"","url":"https://api.github.com/users/ggazzo","html_url":"https://github.com/ggazzo","followers_url":"https://api.github.com/users/ggazzo/followers","following_url":"https://api.github.com/users/ggazzo/following{/other_user}","gists_url":"https://api.github.com/users/ggazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/ggazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggazzo/subscriptions","organizations_url":"https://api.github.com/users/ggazzo/orgs","repos_url":"https://api.github.com/users/ggazzo/repos","events_url":"https://api.github.com/users/ggazzo/events{/privacy}","received_events_url":"https://api.github.com/users/ggazzo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ggazzo/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":true,"url":"https://api.github.com/repos/ggazzo/Rocket.Chat","forks_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/ggazzo/Rocket.Chat/deployments","created_at":"2017-01-04T17:49:35Z","updated_at":"2017-01-04T17:49:44Z","pushed_at":"2017-03-28T20:54:04Z","git_url":"git://github.com/ggazzo/Rocket.Chat.git","ssh_url":"git@github.com:ggazzo/Rocket.Chat.git","clone_url":"https://github.com/ggazzo/Rocket.Chat.git","svn_url":"https://github.com/ggazzo/Rocket.Chat","homepage":"https://rocket.chat/","size":46694,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"RocketChat:develop","ref":"develop","sha":"9508f2cb44d4db28195fc98854518db0dd7276da","user":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars2.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","owner":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars2.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2017-03-29T13:28:58Z","pushed_at":"2017-03-29T09:55:16Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":46778,"stargazers_count":11535,"watchers_count":11535,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2457,"mirror_url":null,"open_issues_count":1700,"forks":2457,"open_issues":1700,"watchers":11535,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/6502"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6502"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6502/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/6502/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/cbafbc5020a1c580ca2aa5cfeb7f9e37aee3a8c6"}}}}
{"actor":{"display_login":"graywolf336"}}