{"action":"created","comment":{"url":"https://api.github.com/repos/pawelgalazka/runjs/pulls/comments/105149787","pull_request_review_id":26013162,"id":105149787,"diff_hunk":"@@ -68,6 +68,23 @@ function runAsync (command, options) {\n   })\n }\n \n+function runAsyncSpawn (command, args, options) {\n+  return new Promise((resolve, reject) => {\n+    const spawnOptions = Object.assign({shell: true}, options)\n+    const asyncProcess = childProcess.spawn(command, args, spawnOptions)\n+    asyncProcess.on('close', code => {\n+      if (code !== 0) {\n+        reject('failed')\n+      } else {\n+        resolve('success')\n+      }\n+    })\n+    asyncProcess.on('error', (error) => {","path":"src/index.js","position":15,"original_position":15,"commit_id":"45c36e6884d6c29ee6736dc5c95b738897ef48d7","original_commit_id":"45c36e6884d6c29ee6736dc5c95b738897ef48d7","user":{"login":"pawelgalazka","id":829242,"avatar_url":"https://avatars2.githubusercontent.com/u/829242?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelgalazka","html_url":"https://github.com/pawelgalazka","followers_url":"https://api.github.com/users/pawelgalazka/followers","following_url":"https://api.github.com/users/pawelgalazka/following{/other_user}","gists_url":"https://api.github.com/users/pawelgalazka/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelgalazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelgalazka/subscriptions","organizations_url":"https://api.github.com/users/pawelgalazka/orgs","repos_url":"https://api.github.com/users/pawelgalazka/repos","events_url":"https://api.github.com/users/pawelgalazka/events{/privacy}","received_events_url":"https://api.github.com/users/pawelgalazka/received_events","type":"User","site_admin":false},"body":"Wondering what here will be returned. Will it be an error from `stderr` ? Haven't found much of info in docs..","created_at":"2017-03-09T12:14:40Z","updated_at":"2017-03-09T12:25:29Z","html_url":"https://github.com/pawelgalazka/runjs/pull/44#discussion_r105149787","pull_request_url":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/pawelgalazka/runjs/pulls/comments/105149787"},"html":{"href":"https://github.com/pawelgalazka/runjs/pull/44#discussion_r105149787"},"pull_request":{"href":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44","id":108545477,"html_url":"https://github.com/pawelgalazka/runjs/pull/44","diff_url":"https://github.com/pawelgalazka/runjs/pull/44.diff","patch_url":"https://github.com/pawelgalazka/runjs/pull/44.patch","issue_url":"https://api.github.com/repos/pawelgalazka/runjs/issues/44","number":44,"state":"open","locked":false,"title":"Add asyncSpawn action","user":{"login":"bmcallis","id":169723,"avatar_url":"https://avatars2.githubusercontent.com/u/169723?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcallis","html_url":"https://github.com/bmcallis","followers_url":"https://api.github.com/users/bmcallis/followers","following_url":"https://api.github.com/users/bmcallis/following{/other_user}","gists_url":"https://api.github.com/users/bmcallis/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcallis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcallis/subscriptions","organizations_url":"https://api.github.com/users/bmcallis/orgs","repos_url":"https://api.github.com/users/bmcallis/repos","events_url":"https://api.github.com/users/bmcallis/events{/privacy}","received_events_url":"https://api.github.com/users/bmcallis/received_events","type":"User","site_admin":false},"body":"I'm not sure how you'd like to handle using spawn. I went with a separate option so it's not a breaking change. \r\n\r\nOnce the api is settled on, I'll get a unit test added.\r\n\r\nFixes #43 ","created_at":"2017-03-01T14:12:37Z","updated_at":"2017-03-09T12:25:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecf8c19681dc5d6ca4cd8107f99e7bf9f23c9de4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44/commits","review_comments_url":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44/comments","review_comment_url":"https://api.github.com/repos/pawelgalazka/runjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pawelgalazka/runjs/issues/44/comments","statuses_url":"https://api.github.com/repos/pawelgalazka/runjs/statuses/45c36e6884d6c29ee6736dc5c95b738897ef48d7","head":{"label":"bmcallis:bugfix/async-spawn","ref":"bugfix/async-spawn","sha":"45c36e6884d6c29ee6736dc5c95b738897ef48d7","user":{"login":"bmcallis","id":169723,"avatar_url":"https://avatars2.githubusercontent.com/u/169723?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcallis","html_url":"https://github.com/bmcallis","followers_url":"https://api.github.com/users/bmcallis/followers","following_url":"https://api.github.com/users/bmcallis/following{/other_user}","gists_url":"https://api.github.com/users/bmcallis/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcallis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcallis/subscriptions","organizations_url":"https://api.github.com/users/bmcallis/orgs","repos_url":"https://api.github.com/users/bmcallis/repos","events_url":"https://api.github.com/users/bmcallis/events{/privacy}","received_events_url":"https://api.github.com/users/bmcallis/received_events","type":"User","site_admin":false},"repo":{"id":83522066,"name":"runjs","full_name":"bmcallis/runjs","owner":{"login":"bmcallis","id":169723,"avatar_url":"https://avatars2.githubusercontent.com/u/169723?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcallis","html_url":"https://github.com/bmcallis","followers_url":"https://api.github.com/users/bmcallis/followers","following_url":"https://api.github.com/users/bmcallis/following{/other_user}","gists_url":"https://api.github.com/users/bmcallis/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcallis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcallis/subscriptions","organizations_url":"https://api.github.com/users/bmcallis/orgs","repos_url":"https://api.github.com/users/bmcallis/repos","events_url":"https://api.github.com/users/bmcallis/events{/privacy}","received_events_url":"https://api.github.com/users/bmcallis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmcallis/runjs","description":"Minimalistic building tool","fork":true,"url":"https://api.github.com/repos/bmcallis/runjs","forks_url":"https://api.github.com/repos/bmcallis/runjs/forks","keys_url":"https://api.github.com/repos/bmcallis/runjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmcallis/runjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmcallis/runjs/teams","hooks_url":"https://api.github.com/repos/bmcallis/runjs/hooks","issue_events_url":"https://api.github.com/repos/bmcallis/runjs/issues/events{/number}","events_url":"https://api.github.com/repos/bmcallis/runjs/events","assignees_url":"https://api.github.com/repos/bmcallis/runjs/assignees{/user}","branches_url":"https://api.github.com/repos/bmcallis/runjs/branches{/branch}","tags_url":"https://api.github.com/repos/bmcallis/runjs/tags","blobs_url":"https://api.github.com/repos/bmcallis/runjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmcallis/runjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmcallis/runjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmcallis/runjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmcallis/runjs/statuses/{sha}","languages_url":"https://api.github.com/repos/bmcallis/runjs/languages","stargazers_url":"https://api.github.com/repos/bmcallis/runjs/stargazers","contributors_url":"https://api.github.com/repos/bmcallis/runjs/contributors","subscribers_url":"https://api.github.com/repos/bmcallis/runjs/subscribers","subscription_url":"https://api.github.com/repos/bmcallis/runjs/subscription","commits_url":"https://api.github.com/repos/bmcallis/runjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmcallis/runjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmcallis/runjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmcallis/runjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmcallis/runjs/contents/{+path}","compare_url":"https://api.github.com/repos/bmcallis/runjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmcallis/runjs/merges","archive_url":"https://api.github.com/repos/bmcallis/runjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmcallis/runjs/downloads","issues_url":"https://api.github.com/repos/bmcallis/runjs/issues{/number}","pulls_url":"https://api.github.com/repos/bmcallis/runjs/pulls{/number}","milestones_url":"https://api.github.com/repos/bmcallis/runjs/milestones{/number}","notifications_url":"https://api.github.com/repos/bmcallis/runjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmcallis/runjs/labels{/name}","releases_url":"https://api.github.com/repos/bmcallis/runjs/releases{/id}","deployments_url":"https://api.github.com/repos/bmcallis/runjs/deployments","created_at":"2017-03-01T06:49:59Z","updated_at":"2017-03-01T06:50:00Z","pushed_at":"2017-03-01T14:09:03Z","git_url":"git://github.com/bmcallis/runjs.git","ssh_url":"git@github.com:bmcallis/runjs.git","clone_url":"https://github.com/bmcallis/runjs.git","svn_url":"https://github.com/bmcallis/runjs","homepage":"","size":141,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"master"}},"base":{"label":"pawelgalazka:v3.1.0","ref":"v3.1.0","sha":"e696fb463a01665429fa4a652a4b35ba4aa4a6e1","user":{"login":"pawelgalazka","id":829242,"avatar_url":"https://avatars2.githubusercontent.com/u/829242?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelgalazka","html_url":"https://github.com/pawelgalazka","followers_url":"https://api.github.com/users/pawelgalazka/followers","following_url":"https://api.github.com/users/pawelgalazka/following{/other_user}","gists_url":"https://api.github.com/users/pawelgalazka/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelgalazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelgalazka/subscriptions","organizations_url":"https://api.github.com/users/pawelgalazka/orgs","repos_url":"https://api.github.com/users/pawelgalazka/repos","events_url":"https://api.github.com/users/pawelgalazka/events{/privacy}","received_events_url":"https://api.github.com/users/pawelgalazka/received_events","type":"User","site_admin":false},"repo":{"id":40677871,"name":"runjs","full_name":"pawelgalazka/runjs","owner":{"login":"pawelgalazka","id":829242,"avatar_url":"https://avatars2.githubusercontent.com/u/829242?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelgalazka","html_url":"https://github.com/pawelgalazka","followers_url":"https://api.github.com/users/pawelgalazka/followers","following_url":"https://api.github.com/users/pawelgalazka/following{/other_user}","gists_url":"https://api.github.com/users/pawelgalazka/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelgalazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelgalazka/subscriptions","organizations_url":"https://api.github.com/users/pawelgalazka/orgs","repos_url":"https://api.github.com/users/pawelgalazka/repos","events_url":"https://api.github.com/users/pawelgalazka/events{/privacy}","received_events_url":"https://api.github.com/users/pawelgalazka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pawelgalazka/runjs","description":"Minimalistic building tool","fork":false,"url":"https://api.github.com/repos/pawelgalazka/runjs","forks_url":"https://api.github.com/repos/pawelgalazka/runjs/forks","keys_url":"https://api.github.com/repos/pawelgalazka/runjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pawelgalazka/runjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pawelgalazka/runjs/teams","hooks_url":"https://api.github.com/repos/pawelgalazka/runjs/hooks","issue_events_url":"https://api.github.com/repos/pawelgalazka/runjs/issues/events{/number}","events_url":"https://api.github.com/repos/pawelgalazka/runjs/events","assignees_url":"https://api.github.com/repos/pawelgalazka/runjs/assignees{/user}","branches_url":"https://api.github.com/repos/pawelgalazka/runjs/branches{/branch}","tags_url":"https://api.github.com/repos/pawelgalazka/runjs/tags","blobs_url":"https://api.github.com/repos/pawelgalazka/runjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pawelgalazka/runjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pawelgalazka/runjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pawelgalazka/runjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pawelgalazka/runjs/statuses/{sha}","languages_url":"https://api.github.com/repos/pawelgalazka/runjs/languages","stargazers_url":"https://api.github.com/repos/pawelgalazka/runjs/stargazers","contributors_url":"https://api.github.com/repos/pawelgalazka/runjs/contributors","subscribers_url":"https://api.github.com/repos/pawelgalazka/runjs/subscribers","subscription_url":"https://api.github.com/repos/pawelgalazka/runjs/subscription","commits_url":"https://api.github.com/repos/pawelgalazka/runjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pawelgalazka/runjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pawelgalazka/runjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pawelgalazka/runjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pawelgalazka/runjs/contents/{+path}","compare_url":"https://api.github.com/repos/pawelgalazka/runjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pawelgalazka/runjs/merges","archive_url":"https://api.github.com/repos/pawelgalazka/runjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pawelgalazka/runjs/downloads","issues_url":"https://api.github.com/repos/pawelgalazka/runjs/issues{/number}","pulls_url":"https://api.github.com/repos/pawelgalazka/runjs/pulls{/number}","milestones_url":"https://api.github.com/repos/pawelgalazka/runjs/milestones{/number}","notifications_url":"https://api.github.com/repos/pawelgalazka/runjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pawelgalazka/runjs/labels{/name}","releases_url":"https://api.github.com/repos/pawelgalazka/runjs/releases{/id}","deployments_url":"https://api.github.com/repos/pawelgalazka/runjs/deployments","created_at":"2015-08-13T19:29:34Z","updated_at":"2017-03-09T12:24:39Z","pushed_at":"2017-03-09T10:28:15Z","git_url":"git://github.com/pawelgalazka/runjs.git","ssh_url":"git@github.com:pawelgalazka/runjs.git","clone_url":"https://github.com/pawelgalazka/runjs.git","svn_url":"https://github.com/pawelgalazka/runjs","homepage":"","size":149,"stargazers_count":140,"watchers_count":140,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":8,"forks":10,"open_issues":8,"watchers":140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44"},"html":{"href":"https://github.com/pawelgalazka/runjs/pull/44"},"issue":{"href":"https://api.github.com/repos/pawelgalazka/runjs/issues/44"},"comments":{"href":"https://api.github.com/repos/pawelgalazka/runjs/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/pawelgalazka/runjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pawelgalazka/runjs/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/pawelgalazka/runjs/statuses/45c36e6884d6c29ee6736dc5c95b738897ef48d7"}}}}
{"actor":{"display_login":"pawelgalazka"}}