{"action":"created","comment":{"url":"https://api.github.com/repos/looker/actions/pulls/comments/210093397","pull_request_review_id":146239279,"id":210093397,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDA5MzM5Nw==","diff_hunk":"@@ -0,0 +1,23 @@\n+import * as semver from \"semver\"\n+import * as Hub from \"../hub\"\n+import {ActionRequest} from \"../hub\"\n+import \"./index.ts\"\n+\n+async function execute(req: any) {\n+    const request = ActionRequest.fromJSON(req.body)\n+    request.instanceId = req.instanceId\n+    request.webhookId = req.webhookId\n+    const userAgent = req.userAgent\n+    if (userAgent) {\n+        const version = userAgent.split(\"LookerOutgoingWebhook/\")[1]\n+        req.lookerVersion = semver.valid(version)\n+    }\n+    const action = await Hub.findAction(req.actionId, {lookerVersion: req.lookerVersion})\n+    return await action.validateAndExecute(request)\n+}\n+\n+process.on(\"message\", (req) => {\n+    const response = execute(req)\n+    response.then((val) => {process.send!(val)})","path":"src/actions/actions_process.ts","position":21,"original_position":21,"commit_id":"a6cb67be29380b28152d9a824f7057a9026e9a24","original_commit_id":"a6cb67be29380b28152d9a824f7057a9026e9a24","user":{"login":"wilg","id":54353,"node_id":"MDQ6VXNlcjU0MzUz","avatar_url":"https://avatars1.githubusercontent.com/u/54353?v=4","gravatar_id":"","url":"https://api.github.com/users/wilg","html_url":"https://github.com/wilg","followers_url":"https://api.github.com/users/wilg/followers","following_url":"https://api.github.com/users/wilg/following{/other_user}","gists_url":"https://api.github.com/users/wilg/gists{/gist_id}","starred_url":"https://api.github.com/users/wilg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilg/subscriptions","organizations_url":"https://api.github.com/users/wilg/orgs","repos_url":"https://api.github.com/users/wilg/repos","events_url":"https://api.github.com/users/wilg/events{/privacy}","received_events_url":"https://api.github.com/users/wilg/received_events","type":"User","site_admin":false},"body":"nit: could use async?","created_at":"2018-08-14T20:31:46Z","updated_at":"2018-08-14T20:37:01Z","html_url":"https://github.com/looker/actions/pull/192#discussion_r210093397","pull_request_url":"https://api.github.com/repos/looker/actions/pulls/192","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/looker/actions/pulls/comments/210093397"},"html":{"href":"https://github.com/looker/actions/pull/192#discussion_r210093397"},"pull_request":{"href":"https://api.github.com/repos/looker/actions/pulls/192"}}},"pull_request":{"url":"https://api.github.com/repos/looker/actions/pulls/192","id":208378589,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4Mzc4NTg5","html_url":"https://github.com/looker/actions/pull/192","diff_url":"https://github.com/looker/actions/pull/192.diff","patch_url":"https://github.com/looker/actions/pull/192.patch","issue_url":"https://api.github.com/repos/looker/actions/issues/192","number":192,"state":"open","locked":false,"title":"Fork Processes for Heavy Streaming Actions","user":{"login":"phillipperalez","id":14983122,"node_id":"MDQ6VXNlcjE0OTgzMTIy","avatar_url":"https://avatars3.githubusercontent.com/u/14983122?v=4","gravatar_id":"","url":"https://api.github.com/users/phillipperalez","html_url":"https://github.com/phillipperalez","followers_url":"https://api.github.com/users/phillipperalez/followers","following_url":"https://api.github.com/users/phillipperalez/following{/other_user}","gists_url":"https://api.github.com/users/phillipperalez/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipperalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipperalez/subscriptions","organizations_url":"https://api.github.com/users/phillipperalez/orgs","repos_url":"https://api.github.com/users/phillipperalez/repos","events_url":"https://api.github.com/users/phillipperalez/events{/privacy}","received_events_url":"https://api.github.com/users/phillipperalez/received_events","type":"User","site_admin":false},"body":"Local testing has shown many improvements, however I need this to be thoroughly smoked on product-dev first. Still need to add some tests.","created_at":"2018-08-14T18:59:57Z","updated_at":"2018-08-14T20:37:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"758a00eb2caaa60996d12b55d54bf8b23d256e7c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/looker/actions/pulls/192/commits","review_comments_url":"https://api.github.com/repos/looker/actions/pulls/192/comments","review_comment_url":"https://api.github.com/repos/looker/actions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/looker/actions/issues/192/comments","statuses_url":"https://api.github.com/repos/looker/actions/statuses/a6cb67be29380b28152d9a824f7057a9026e9a24","head":{"label":"looker:poc-child-processes","ref":"poc-child-processes","sha":"a6cb67be29380b28152d9a824f7057a9026e9a24","user":{"login":"looker","id":1437874,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzc4NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1437874?v=4","gravatar_id":"","url":"https://api.github.com/users/looker","html_url":"https://github.com/looker","followers_url":"https://api.github.com/users/looker/followers","following_url":"https://api.github.com/users/looker/following{/other_user}","gists_url":"https://api.github.com/users/looker/gists{/gist_id}","starred_url":"https://api.github.com/users/looker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/looker/subscriptions","organizations_url":"https://api.github.com/users/looker/orgs","repos_url":"https://api.github.com/users/looker/repos","events_url":"https://api.github.com/users/looker/events{/privacy}","received_events_url":"https://api.github.com/users/looker/received_events","type":"Organization","site_admin":false},"repo":{"id":87483460,"node_id":"MDEwOlJlcG9zaXRvcnk4NzQ4MzQ2MA==","name":"actions","full_name":"looker/actions","owner":{"login":"looker","id":1437874,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzc4NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1437874?v=4","gravatar_id":"","url":"https://api.github.com/users/looker","html_url":"https://github.com/looker","followers_url":"https://api.github.com/users/looker/followers","following_url":"https://api.github.com/users/looker/following{/other_user}","gists_url":"https://api.github.com/users/looker/gists{/gist_id}","starred_url":"https://api.github.com/users/looker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/looker/subscriptions","organizations_url":"https://api.github.com/users/looker/orgs","repos_url":"https://api.github.com/users/looker/repos","events_url":"https://api.github.com/users/looker/events{/privacy}","received_events_url":"https://api.github.com/users/looker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/looker/actions","description":null,"fork":false,"url":"https://api.github.com/repos/looker/actions","forks_url":"https://api.github.com/repos/looker/actions/forks","keys_url":"https://api.github.com/repos/looker/actions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/looker/actions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/looker/actions/teams","hooks_url":"https://api.github.com/repos/looker/actions/hooks","issue_events_url":"https://api.github.com/repos/looker/actions/issues/events{/number}","events_url":"https://api.github.com/repos/looker/actions/events","assignees_url":"https://api.github.com/repos/looker/actions/assignees{/user}","branches_url":"https://api.github.com/repos/looker/actions/branches{/branch}","tags_url":"https://api.github.com/repos/looker/actions/tags","blobs_url":"https://api.github.com/repos/looker/actions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/looker/actions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/looker/actions/git/refs{/sha}","trees_url":"https://api.github.com/repos/looker/actions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/looker/actions/statuses/{sha}","languages_url":"https://api.github.com/repos/looker/actions/languages","stargazers_url":"https://api.github.com/repos/looker/actions/stargazers","contributors_url":"https://api.github.com/repos/looker/actions/contributors","subscribers_url":"https://api.github.com/repos/looker/actions/subscribers","subscription_url":"https://api.github.com/repos/looker/actions/subscription","commits_url":"https://api.github.com/repos/looker/actions/commits{/sha}","git_commits_url":"https://api.github.com/repos/looker/actions/git/commits{/sha}","comments_url":"https://api.github.com/repos/looker/actions/comments{/number}","issue_comment_url":"https://api.github.com/repos/looker/actions/issues/comments{/number}","contents_url":"https://api.github.com/repos/looker/actions/contents/{+path}","compare_url":"https://api.github.com/repos/looker/actions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/looker/actions/merges","archive_url":"https://api.github.com/repos/looker/actions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/looker/actions/downloads","issues_url":"https://api.github.com/repos/looker/actions/issues{/number}","pulls_url":"https://api.github.com/repos/looker/actions/pulls{/number}","milestones_url":"https://api.github.com/repos/looker/actions/milestones{/number}","notifications_url":"https://api.github.com/repos/looker/actions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/looker/actions/labels{/name}","releases_url":"https://api.github.com/repos/looker/actions/releases{/id}","deployments_url":"https://api.github.com/repos/looker/actions/deployments","created_at":"2017-04-06T23:15:13Z","updated_at":"2018-08-08T22:33:22Z","pushed_at":"2018-08-14T19:02:10Z","git_url":"git://github.com/looker/actions.git","ssh_url":"git@github.com:looker/actions.git","clone_url":"https://github.com/looker/actions.git","svn_url":"https://github.com/looker/actions","homepage":null,"size":13732,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":32,"watchers":3,"default_branch":"master"}},"base":{"label":"looker:master","ref":"master","sha":"46b97301bf7053a1a1efad8e62e92da3618d3ad7","user":{"login":"looker","id":1437874,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzc4NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1437874?v=4","gravatar_id":"","url":"https://api.github.com/users/looker","html_url":"https://github.com/looker","followers_url":"https://api.github.com/users/looker/followers","following_url":"https://api.github.com/users/looker/following{/other_user}","gists_url":"https://api.github.com/users/looker/gists{/gist_id}","starred_url":"https://api.github.com/users/looker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/looker/subscriptions","organizations_url":"https://api.github.com/users/looker/orgs","repos_url":"https://api.github.com/users/looker/repos","events_url":"https://api.github.com/users/looker/events{/privacy}","received_events_url":"https://api.github.com/users/looker/received_events","type":"Organization","site_admin":false},"repo":{"id":87483460,"node_id":"MDEwOlJlcG9zaXRvcnk4NzQ4MzQ2MA==","name":"actions","full_name":"looker/actions","owner":{"login":"looker","id":1437874,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzc4NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1437874?v=4","gravatar_id":"","url":"https://api.github.com/users/looker","html_url":"https://github.com/looker","followers_url":"https://api.github.com/users/looker/followers","following_url":"https://api.github.com/users/looker/following{/other_user}","gists_url":"https://api.github.com/users/looker/gists{/gist_id}","starred_url":"https://api.github.com/users/looker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/looker/subscriptions","organizations_url":"https://api.github.com/users/looker/orgs","repos_url":"https://api.github.com/users/looker/repos","events_url":"https://api.github.com/users/looker/events{/privacy}","received_events_url":"https://api.github.com/users/looker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/looker/actions","description":null,"fork":false,"url":"https://api.github.com/repos/looker/actions","forks_url":"https://api.github.com/repos/looker/actions/forks","keys_url":"https://api.github.com/repos/looker/actions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/looker/actions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/looker/actions/teams","hooks_url":"https://api.github.com/repos/looker/actions/hooks","issue_events_url":"https://api.github.com/repos/looker/actions/issues/events{/number}","events_url":"https://api.github.com/repos/looker/actions/events","assignees_url":"https://api.github.com/repos/looker/actions/assignees{/user}","branches_url":"https://api.github.com/repos/looker/actions/branches{/branch}","tags_url":"https://api.github.com/repos/looker/actions/tags","blobs_url":"https://api.github.com/repos/looker/actions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/looker/actions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/looker/actions/git/refs{/sha}","trees_url":"https://api.github.com/repos/looker/actions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/looker/actions/statuses/{sha}","languages_url":"https://api.github.com/repos/looker/actions/languages","stargazers_url":"https://api.github.com/repos/looker/actions/stargazers","contributors_url":"https://api.github.com/repos/looker/actions/contributors","subscribers_url":"https://api.github.com/repos/looker/actions/subscribers","subscription_url":"https://api.github.com/repos/looker/actions/subscription","commits_url":"https://api.github.com/repos/looker/actions/commits{/sha}","git_commits_url":"https://api.github.com/repos/looker/actions/git/commits{/sha}","comments_url":"https://api.github.com/repos/looker/actions/comments{/number}","issue_comment_url":"https://api.github.com/repos/looker/actions/issues/comments{/number}","contents_url":"https://api.github.com/repos/looker/actions/contents/{+path}","compare_url":"https://api.github.com/repos/looker/actions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/looker/actions/merges","archive_url":"https://api.github.com/repos/looker/actions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/looker/actions/downloads","issues_url":"https://api.github.com/repos/looker/actions/issues{/number}","pulls_url":"https://api.github.com/repos/looker/actions/pulls{/number}","milestones_url":"https://api.github.com/repos/looker/actions/milestones{/number}","notifications_url":"https://api.github.com/repos/looker/actions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/looker/actions/labels{/name}","releases_url":"https://api.github.com/repos/looker/actions/releases{/id}","deployments_url":"https://api.github.com/repos/looker/actions/deployments","created_at":"2017-04-06T23:15:13Z","updated_at":"2018-08-08T22:33:22Z","pushed_at":"2018-08-14T19:02:10Z","git_url":"git://github.com/looker/actions.git","ssh_url":"git@github.com:looker/actions.git","clone_url":"https://github.com/looker/actions.git","svn_url":"https://github.com/looker/actions","homepage":null,"size":13732,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":32,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/looker/actions/pulls/192"},"html":{"href":"https://github.com/looker/actions/pull/192"},"issue":{"href":"https://api.github.com/repos/looker/actions/issues/192"},"comments":{"href":"https://api.github.com/repos/looker/actions/issues/192/comments"},"review_comments":{"href":"https://api.github.com/repos/looker/actions/pulls/192/comments"},"review_comment":{"href":"https://api.github.com/repos/looker/actions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/looker/actions/pulls/192/commits"},"statuses":{"href":"https://api.github.com/repos/looker/actions/statuses/a6cb67be29380b28152d9a824f7057a9026e9a24"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wilg"}}